Unit Testing Strategy and Coverage Dashboard
Documents and demonstrates WarGrid's internal unit test approach (pure models, reducers, formatters) along with the coverage thresholds. It shows contributors how to add tests and shows users the project's quality signals.
Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A coverage treemap by module, with a sample unit test that can be run in-browser.
Expected behavior
Selecting a module shows its coverage and the matching test files. The sample test runs and reports its result.
Planned API surface
coverage thresholds configtest naming conventionmodule test mapAcceptance criteria
- CI fails when coverage falls below the module thresholds (pending)
- The dashboard data is generated from the CI artefact of the shown version (pending)
- Every public module has a test file mapping (pending)