OxL Reference

§18. Tests

In this chapter

18.1 Test declarationForm: attributes* test kind?
18.2 Assertions and fixturesassert expr is executed in all profiles, including prod (profiles switch off only contracts, §6.7, and the output of dbg, §2.2); on failure it prints the values of all subexpressions; assert expr, "message"; assert x is…
18.3 Mocksmock S { … } replaces a service, interface or actor within a test.
18.4 SimulationIn sim the scheduler, network, clocks, randomness and disk failures are deterministic; the result depends only on the seed.
18.5 A/B testsIn oxl test the experiment is run on recorded traffic and compares the metrics of the variants with statistical significance.

See also

Source: docs/spec/oxl-standard.en.md