| name | write-rust-tests |
| description | Write Rust tests for OpenFirma crates while avoiding redundant coverage. |
Write Rust Tests
Write new Rust tests for OpenFirma code.
Arguments
<path>: path to a crate or Rust file
<path1> <path2>: multiple crate or file paths
Instructions
- Identify the public behavior, branch, or invariant that needs coverage.
- Place new tests in a crate-level
tests/ integration suite as required by the test guidelines.
- Check existing tests before writing anything new.
- Add the smallest test set that covers the missing behavior.
- Run the relevant tests.
- Follow
rust-tests-guidelines for test quality and organization rules.
What to test
- success and failure paths
- boundary conditions
- configuration parsing and validation
- documentation examples when they are intended to be runnable
Validation
After adding tests, run the smallest relevant test command first. Use
run-rust-tests for command selection.