Skip to content

feat: Testing Enhancements - Visual Regression, Auto E2E, Coverage Gates #236

Closed

Description

@admarble

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:

  1. Before /exec: Run coverage, store baseline in .sequant/coverage-baseline.json
  2. After /exec: Run coverage again
  3. /qa compares and reports delta
  4. Negative delta = warning (not blocking)

Integrates with existing tools:

  • Node: c8, istanbul, nyc (reads coverage/coverage-summary.json)
  • Python: coverage.py (reads .coverage or coverage.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 /qa output
  • 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

  1. added
    enhancement
    on Feb 2, 2026
  2. added
    auto-ready
    on Feb 16, 2026
  3. admarble commented on Feb 22, 2026

    @admarble
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-readyenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions