OxL Reference

testing-demo

Every kind of test of Standard §18 on one small checkout: unit tests with assert, assert_eq, assert_fails; a fixture with set-up and clean-up; mock of an external service with scripted answers and calls; a deterministic simulation (test sim, virtual clock, fault injection, one run per seed).

sh
oxl test                 # unit tests
oxl test --kind sim      # simulation, every seed
oxl test --seed 7        # replay one seed

Project files#

Download the project (zip)

Source: examples/testing-demo

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides