This recipe covers accessibility spot-checking using axe-core and Lighthouse. For operationalized a11y monitoring — scheduled runs, trend tracking, aggregated reports, and stakeholder dashboards — talk to your QA Wolf team about full-service accessibility testing.
Examples
Gate a release on axe-core violationsWhen to use
- Your app has pages that must meet WCAG standards and you need to catch regressions before they reach production.
- Your team needs a release gate that fails on critical or serious WCAG violations.
- Your team needs a shareable accessibility report for stakeholders or compliance purposes.
- Your team wants to establish a baseline score for a page and track it over time.
Choosing the right approach
These two approaches complement each other. Axe-core is precise and gateable; Lighthouse is broad and reportable. For the most complete picture, use both.
Full sample test
The full sample gates on all violation levels. Adjust the threshold to match your policy — some teams only gate on
critical and serious, particularly when first introducing accessibility testing.