qcheck_gleeunit_utils/run

This module provides an alternative to the gleeunit.main function that will run tests in parallel when targeting Erlang. When targeting JavaScript, it will use Gleeunit’s default runner.

Functions

pub fn run_gleeunit() -> 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 ending in _test is considered a test function and will be run.

When targeting Erlang, any Erlang or Gleam function in the test directory with a name ending in _test_ is considered a test generating function that should return a representation of a set of tests to be run. (See test_spec.make, for more information.)

  • If running on Erlang, tests will be run in parallel.
  • If running on JavaScript, tests will be run with Gleeunit’s default runner.
Search Document