Skip to content
forked from lpil/gleeunit

Gleam bindings for the Erlang EUnit test framework

License

Notifications You must be signed in to change notification settings

keroami/gleeunit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gleeunit

Gleam bindings to the Erlang EUnit test framework.

A custom test runner is included for when compiled to JavaScript.

Documentation is available on HexDocs.

Usage

Add this package to your Gleam project.

gleam add gleeunit --dev

And then call the gleeunit.main function from your test main function.

// In test/yourapp_test.gleam
import gleeunit

pub fn main() {
  gleeunit.main()
}

Now any public function with a name ending in _test in the test directory will be found and run as a test.

pub fn the_universe_test() {
  assert 1 = 1
}

Run the tests by entering gleam test in the command line.

About

Gleam bindings for the Erlang EUnit test framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 80.3%
  • Gleam 13.7%
  • JavaScript 6.0%