Repository navigation
Closed
Labels
Description
Summary
Integrate with existing coverage tools to surface coverage delta in QA output.
Scope: Integration, not building our own coverage/testing infrastructure.
Proposed Feature
Coverage Delta Reporting (Single Feature)
Show coverage change in /qa output by integrating with existing coverage tools:
## QA Review for Issue #218
### Coverage Delta
| Metric | Before | After | Delta |
|--------|--------|-------|-------|
| Lines | 78.2% | 79.1% | +0.9% ✅ |
| Branches | 65.4% | 64.8% | -0.6% ⚠️ |
| New files | - | 85.0% | - |
**New uncovered lines:**
- `src/components/FocalPointPicker.tsx:45-52` (error handling)
- `src/actions/updateArticleImage.ts:89` (edge case)
### Verdict: AC_MET_BUT_NOT_A_PLUS
Coverage decreased slightly. Consider adding tests for uncovered error handling.How it works:
- Before
/exec: Run coverage, store baseline in.sequant/coverage-baseline.json - After
/exec: Run coverage again /qacompares and reports delta- Negative delta = warning (not blocking)
Integrates with existing tools:
- Node: c8, istanbul, nyc (reads
coverage/coverage-summary.json) - Python: coverage.py (reads
.coverageorcoverage.xml) - Go: go test -cover (parse output)
- Generic: Any tool that outputs lcov or cobertura format
Configuration:
// .sequant/config.json
{
"coverage": {
"enabled": true,
"command": "npm run test:coverage",
"summaryPath": "coverage/coverage-summary.json",
"warnOnDecrease": true,
"blockOnDecrease": false // Warning only, not blocking
}
}What This Is NOT
- ❌ Not building a coverage tool (use existing)
- ❌ Not enforcing coverage thresholds (CI should do this)
- ❌ Not visual regression testing (operational complexity)
- ❌ Not auto-generating E2E tests (too brittle)
- ❌ Not flaky test detection (different paradigm)
Acceptance Criteria
- Coverage baseline captured before
/exec - Coverage delta shown in
/qaoutput - Uncovered new lines listed with file:line
- Works with c8/istanbul (Node default)
- Configurable coverage command
- Negative delta = warning, not blocker
Value
Surfaces coverage impact during QA without requiring developers to manually check. Uses existing tools - sequant just orchestrates and reports.
Why Not The Other Features?
| Original Feature | Why Removed |
|---|---|
| Visual regression | Baseline management is operationally complex. Who updates baselines? |
| Auto E2E from AC | Natural language → executable tests is unreliable. Produces brittle tests. |
| Coverage enforcement | CI systems already do this. Redundant. |
| Flaky test detection | Requires running tests multiple times. Different paradigm than sequant's single-run model. |
Future Consideration (Not This Issue)
- Test impact analysis (which tests to run based on changed files)
- Integration with more coverage formats
- Historical coverage tracking in metrics
Revised from original feature planning discussion - scoped to coverage integration only, removed testing infrastructure features
Activity
admarble commentedon Feb 22, 2026
Closing per issue audit. Title ("Visual Regression, Auto E2E, Coverage Gates") is misleading — actual scope is coverage delta reporting only. Visual regression testing is a separate product (Percy, Chromatic). If coverage delta reporting is wanted, create a properly-scoped issue.