Regression testing overview¶
Regression testing in a11yst means comparing a new audit against a stored baseline. The baseline records fingerprints of findings you have seen before; the next run classifies each finding as new, known, regressed, or resolved.
This section documents operational workflows. For the mental model (projects, routes, profiles, and findings), see Core concepts.
Baseline is not approval
A finding present in the baseline is not marked as acceptable, compliant, or safe. The baseline is a comparison reference only. Use classifications when you need to record disposition separately from lifecycle status.
What you get¶
| Output | Purpose |
|---|---|
| Lifecycle status per finding | See what changed since the last stored baseline |
baselineSummary in JSON |
Counts of new, known, regressed, and resolved findings |
| CI policy evaluation | Optional pass/fail gates on new or regressed findings |
| Baseline file | Versioned JSON at .a11yst/baseline.json by default |
Typical workflow¶
- Run an audit and review findings.
- Create or update a baseline when the current set is your comparison reference — see Updating a baseline.
- Change application code.
- Run the next audit; a11yst compares against the baseline automatically when
baseline.compareis enabled. - Triage new and regressed findings; confirm resolved findings.
- In CI, enable policies so unexpected changes fail the job — see CI workflow.
Commands¶
| Task | Command |
|---|---|
| Audit with comparison | a11yst audit |
| Create baseline from results | a11yst baseline create --from .a11yst/results/latest.json |
| Preview baseline update | a11yst baseline update --from … --dry-run |
| Apply baseline update | a11yst baseline update --from … --yes |
| Baseline status | a11yst baseline status |
| Filter findings by status | a11yst findings --status new --status regressed |
Next steps¶
- Baselines — storage, fingerprints, and comparison mechanics
- Classifications — lifecycle statuses and dispositions
- Updating a baseline — when and how to refresh the baseline file
- Policies — CI gates and severity thresholds
- CI workflow — recommended pipeline steps