gleeunit

Functions

pub fn main() -> Nil

Find and run all test functions for the current project using Erlang’s EUnit test framework.

Any Erlang or Gleam function in the test directory with a name editing in _test is considered a test function and will be run.

If running on JavaScript tests will be run with a custom test runner.

pub fn run(
  test_module_files: List(String),
  halts_on_error halts_on_error: Bool,
) -> Nil

Similar to main() but meant to be called as a function not from cli:

  • Allows to specificy a list of test modules
  • Allows customization of the halt behavior
Search Document