[P0] Enforce 80% Rust and frontend coverage with explained shortfalls #40
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#8 [P0] F03: Wire PostgreSQL migrations, bounded pooling and canonical repositories
primatekuntech/rag-rust
Reference
primatekuntech/rag-rust#40
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
Enforce SRS NFR-MAINT-007: at least 80% line coverage, measured separately for first-party Rust workspace code and React/TypeScript application code, with explicit reasons/remediation for any shortfall.
Priority and prerequisites
P0, M1. Follow-up to #6; integrate the real PostgreSQL contracts from #8 before finalizing backend instrumentation. Complete this test infrastructure before expanding application features.
Current gap and risk
The frontend scaffold currently has type checking and production builds but no test runner/coverage instrumentation. Its coverage is unmeasured, so the 80% minimum is not demonstrated. This is a scoped foundation-stage shortfall; UI behavior remains unverified by coverage until this issue is completed. PR #39 records the Rust measurement separately. Neither a successful build nor passing tests alone is coverage evidence.
Acceptance criteria
Requirement requested by the user during #8 implementation; see docs/SRS.md NFR-MAINT-007 and docs/architecture.md §5.2.
Baseline recorded by PR #39 at
e12e70a78a209359f0da985336f26d4b6930b478: Rust application-only line coverage 87.29% (632/724), including all 14 real PostgreSQL tests. Test fixtures are excluded; API/migration entry points remain included. Frontend is unmeasured because its scaffold currently has typecheck/build but no behavior-test/coverage tooling. The concrete reason, risk and remediation are recorded in coverage evidence, alongside the normalized LLVM report. Functional CI passed; the separate coverage gates and frontend coverage remain the work of this issue.