You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently these targets are documented (in docs/QA.md, docs/DEVELOPMENT.md, and agent prompts) but not enforced — there's no vitest config or CI check that fails when coverage drops below the threshold.
What
Configure vitest coverage thresholds so that pnpm test fails if coverage drops below the target for MUST TDD domains.
Acceptance Criteria
vitest.config.ts in cli/ and server/ configured with coverage.thresholds per-glob pattern
pnpm test:coverage fails if any MUST TDD domain drops below its target
Baseline coverage measured and documented (current actual vs target)
If current coverage is below target for any domain, create a plan to close the gap before enforcing
Pre-PR hookify gate updated to run pnpm test:coverage (or document why pnpm test alone is sufficient)
Context
PR #187 established strategic TDD domains with coverage targets:
cli/src/providers/)server/src/llm/*-normalize.ts)server/src/llm/analysis-pricing.ts)server/src/llm/response-parsers.ts)cli/src/db/)server/src/routes/)Currently these targets are documented (in
docs/QA.md,docs/DEVELOPMENT.md, and agent prompts) but not enforced — there's no vitest config or CI check that fails when coverage drops below the threshold.What
Configure vitest coverage thresholds so that
pnpm testfails if coverage drops below the target for MUST TDD domains.Acceptance Criteria
vitest.config.tsincli/andserver/configured withcoverage.thresholdsper-glob patternpnpm test:coveragefails if any MUST TDD domain drops below its targetpnpm test:coverage(or document whypnpm testalone is sufficient)Notes
pnpm teston coverage, usepnpm test:coverageas a separate checkSize
T-shirt: S (config changes + baseline measurement)