20 lines
832 B
Markdown
20 lines
832 B
Markdown
# ADR 0010 — Coverage scope focuses on modularized, testable code
|
||
|
||
**Decision**
|
||
|
||
- Limit coverage measurement to:
|
||
- `src/**/*` (extracted modules we are actively testing), and
|
||
- `scripts/init-*.mjs` (small DOM bridges with DOM tests).
|
||
- Exclude legacy monolith (`script.js`) and infra scripts (audit/serve/ci-check, etc.).
|
||
- Keep global thresholds (L70 / B70 / F50 / S70) unchanged.
|
||
|
||
**Rationale**
|
||
|
||
- Totals were dominated by the legacy `script.js` (0% by design — not imported in tests).
|
||
- This change makes our coverage **actionable**, reflecting the parts we’re migrating and testing.
|
||
|
||
**Consequences**
|
||
|
||
- CI passes/fails based on coverage of the extracted modules and bridges — the real “units under test” for now.
|
||
- As we extract more from the monolith into `src/`, they will automatically fall under coverage.
|