Files
q-edit/docs/adr/0010-coverage-scope.md
2025-09-02 22:31:59 -04:00

20 lines
832 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 were 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.