Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Gleam bindings for the Erlang EUnit test framework

License

NotificationsYou must be signed in to change notification settings

lpil/gleeunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleam bindings to the Erlang EUnit test framework.

A custom test runner is included for when compiled to JavaScript running oneither NodeJS or Deno.

Documentation is available onHexDocs.

Usage

Add this package to your Gleam project.

gleam add gleeunit --dev

And then call thegleeunit.main function from your test main function.

// In test/yourapp_test.gleamimportgleeunitpubfnmain(){gleeunit.main()}

Now any public function with a name ending in_test in thetest directorywill be found and run as a test.

pubfnthe_universe_test(){letassert1=1}

Run the tests by enteringgleam test in the command line.

Deno

If using the Deno JavaScript runtime, you will need to add the following to yourgleam.toml.

[javascript.deno]allow_read = ["gleam.toml","test","build",]

[8]ページ先頭

©2009-2025 Movatter.jp