x07-test
This skill provides the single canonical way to run tests for an X07 project using the built-in test harness.
Canonical command
- •
x07 test --manifest tests/tests.json
Notes
- •By default,
x07 testprints JSON to stdout; use--report-out <path>to write a report file. - •
x07 testresolvesstdlib.lockby searching upward from the manifest directory, then upward from thex07executable location. Override with--stdlib-lock <path>. - •New projects created with
x07 initincludetests/tests.jsonplus a minimaltests/smoke.x07.json. - •Publishable package repos created with
x07 init --packageincludetests/tests.jsonand publishable modules undermodules/(notests/smoke.x07.json). - •Tests under
tests/can import your project modules via project module-root discovery (typicallysrc/in projects, andmodules/in package repos). - •World-gating is enforced at compile time. Keep unit tests small and pure (no filesystem/network I/O) unless you are explicitly writing OS-world integration tests and running them under the sandbox profile.
See also: https://x07lang.org/docs/toolchain/testing-by-example/