Tests and quality gates
A hierarchy of evidence
| Check | Demonstrates | Limit |
|---|---|---|
| Node, integration and DOM | Rules and simulated journeys | Not the actual native WebView |
| Lua / Fengari | Events, imports, isolation and replay | Not the WoW client |
| Real AceSerializer | Serialized format compatibility | Not TSM's import interface |
| Rust tests / Clippy | Native policies and static quality | Not real user interaction |
| Financial coverage | Exercised economic branches | Not every assumption's correctness |
| Targeted mutations | Sensitivity to six critical regressions | Not exhaustive mutation testing |
| Package smoke | Shipped runtime, authentication, page and shutdown | Not in-game qualification |
npm run verify orchestrates audit, JS/Lua formatting, lint, Lua 5.1 parsing, tests, coverage, mutations and Fallow. An unavailable audit fails instead of claiming no advisories exist.
Thresholds and debt
Financial coverage minimums: 90% lines and functions, 75% branches in explicitly selected modules. Mutations must detect duplicate commission, ignored stock, stale prices, reserve breaches, mixed regions and stale session confirmations. Timeouts, syntax errors or broken imports do not count as correctly detected mutations.
Fallow checks unused code, boundaries, duplication and complexity. Duplication ceiling: 3%. Complex inherited functions have a reviewed baseline; new deterioration fails. Accepting a baseline with node scripts/check-fallow.cjs --accept-baseline requires rationale, never automatic CI approval. Browser classic scripts and native entrypoints are explicitly declared.
Documentation has its own VitePress graph and checks: FR/EN parity, references, versions, links, build and portable server. Exclusion from the application's Fallow graph does not exclude it from CI.
Release evidence
Reports in artifacts are regenerated for current sources. Figures from an older candidate do not prove that a new revision passes. In-game smoke records WoW/TSM versions, scenario, result and anomalies. A checked box without observation is not evidence.
