OxL Reference

III.9 Running tests

FlagMeaning
[paths]packages, modules or files (svc/orders, src/cart/cart_test.oxl)
--kind unit,integ,sim,contract,ab,bench,fuzzkinds of tests; unit,integ,contract by default
-f, --filter <regex>by the full name module::name
--exact <name>a single test by exact name
-t, --tag slow,dbonly those with these labels; --tag !flaky — exclude
--skip <regex>exclude by name
--failedonly those that failed in the last run
--changed [ref]tests affected by changes relative to a git reference (by the dependency graph)
--seed N, --seeds a..bseed for sim
-j, --parallel Nnumber of parallel tests (cores by default)
--timeout dper-test limit (TEST_TIMEOUT = 60 s by default)
--repeat Nrepeat N times (finding flaky tests)
--fail-faststop at the first failure
--listshow the selected tests without running
--coverage [--html]coverage of lines, branches and error variants
--update-snapshotsoverwrite snapshots
--graphopen the call graph of a failed integ/sim test
--debugrun the test under the debugger
--format pretty|json|junitreport format

Selection is combined with AND: oxl test svc/orders --kind sim -t payments --seeds 1..200 -f checkout.

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