Sounio Tests Suite
Overview
Write minimal, high-signal tests that protect language semantics, diagnostics, and regressions.
Workflow
1) Choose the right test bucket
tests/run-pass/: should compile and runtests/compile-fail/: should fail to compiletests/ui/: diagnostics/error message matching via//@ error-pattern:compiler/tests/: Rust integration tests for compiler subsystems
2) Keep tests small and explicit
- Avoid relying on features listed as missing in
compiler/docs/KNOWN_LIMITATIONS.md. - Prefer one behavior per test file; add
//@ ignoreif it’s documenting an aspirational feature.
3) Run the narrowest validation first
- If you changed Rust compiler code:
cd compiler && cargo test <name> - If you changed language behavior: run the smallest relevant test subset first
References
- Test annotations and patterns:
references/test-annotations.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.