Add JSON reporter to produced artifacts in Automated Accessibility
Problem to solve
The a11y MVC is great in giving me a viewable HTML artifact, but it's huge and not easy to digest which issues are the worst and which category of issues are most prevalent. Beyond that everyone who wants to see this has to download it and follow instructions about how to view the file and get the data. If I could see the latest accessibility report for my project in GitLab it would be much more valuable for me to create new issues to improve the a11y of my project for users.
One of the produced artifacts should be a JSON file with all the results from the accessibility scan.
pa11y scan with the reporter set to
json as well as
html The simplest implementation of this will be to run the
pa11y scan twice, which could be inefficient for a large number of pages but is the MVC that produces the data we want.
We currently use the plain
pa11y library, but
pa11y-ci is available and easy to use as well.