§18. Tests
In this chapter
| 18.1 Test declaration | Form: attributes* test kind? |
| 18.2 Assertions and fixtures | assert 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 Mocks | mock S { … } replaces a service, interface or actor within a test. |
| 18.4 Simulation | In sim the scheduler, network, clocks, randomness and disk failures are deterministic; the result depends only on the seed. |
| 18.5 A/B tests | In 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