Module hb_test_utils.erl¶
Simple utilities for testing HyperBEAM.
Function Index¶
run/4 | |
satisfies_requirements/1* | Determine if the environment satisfies the given test requirements. |
suite_with_opts/2 | Run each test in a suite with each set of options. |
test_store/0 | Generate a new, unique test store as an isolated context for an execution. |
Function Details¶
run/4¶
run(Name, OptsName, Suite, OptsList) -> any()
satisfies_requirements/1 *¶
satisfies_requirements(Requirements) -> any()
Determine if the environment satisfies the given test requirements.
Requirements is a list of atoms, each corresponding to a module that must
return true if it exposes an enabled/0
function.
suite_with_opts/2¶
suite_with_opts(Suite, OptsList) -> any()
Run each test in a suite with each set of options. Start and reset
the store(s) for each test. Expects suites to be a list of tuples with
the test name, description, and test function.
The list of Opts
should contain maps with the name
and opts
keys.
Each element may also contain a skip
key with a list of test names to skip.
They can also contain a desc
key with a description of the options.
test_store/0¶
test_store() -> any()
Generate a new, unique test store as an isolated context for an execution.