managarten/docs/optimizable
Till JS 68c0eb2892 chore(test + audit): add test-coverage audit + wire audit:all
#6 test coverage (pivot to reporting): 34/653 tests currently fail
(in-flight spaces-foundation migrations). Hard coverage thresholds
aren't enforceable until the suite is green, so this session ships a
file-presence audit instead of line-coverage gates.

  - scripts/audit-test-coverage.mjs — counts .svelte + .ts source files
    vs .test.ts + .spec.ts per module. Reports total ratio, lists
    modules with 0 tests + ≥3 source files (prioritised by size).
  - pnpm run audit:test-coverage  wires it into audit:*.
  - docs/optimizable/test-health.md — state + prevention path + top
    untested modules ranked by impact.

Current baseline: 2.6% file-level coverage. 66/78 modules have zero
tests. Biggest untested: times (32 src), articles (29), events (27),
inventory + skilltree (20 each).

#8 audit:all: single entry point for the reporting audits. Runs
port-drift + i18n-coverage + test-coverage in --summary mode. Distinct
from validate:all (which is gates, not reports).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 17:38:12 +02:00
..
ai-workbench-audit-2026-04-16.md fix(ai): P0 — tool exception handling + mission run mutex 2026-04-16 16:17:08 +02:00
foundation-layer-improvements.md chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
frontend-consistency-improvements.md refactor: rename eventstream -> activity, cycles -> period 2026-04-14 19:45:43 +02:00
i18n-migration-inventory.md chore(i18n): add coverage audit + migration inventory 2026-04-22 17:16:55 +02:00
test-health.md chore(test + audit): add test-coverage audit + wire audit:all 2026-04-22 17:38:12 +02:00