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

832 B
Raw Permalink Blame History

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.