Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

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

A simple test runner for Gleam, using EUnit on Erlang and a custom runner on JS.

Package VersionHex Docs

gleam add gleeunit@1 --dev
// 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.

pubfnsome_function_test(){assertsome_function() == "Hello!"}

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",]

About

Gleam bindings for the Erlang EUnit test framework

Topics

Resources

License

Stars

Watchers

Forks

Contributors15


[8]ページ先頭

©2009-2025 Movatter.jp