pa11y-webservice
pa11y-webservice copied to clipboard
Add support for aXe runner
Pa11y (not currently published) now supports multiple test runners. We need to add the ability to select runners in the webservices.
Therse a couple of ways this could be done:
- Specify a global runner(s) in the config
- Specify the runner(s) for each site when it's added to the webservices
- This would require additional work in the dashboard
I would have thought allowing specifying the runner(s) would be preferable, but would take longer - it would allow separation if necessary for results, as well as setting a customisable model for if/when future runners may be added.
I guess we would also need to set/decide what to do about existing tests that have no runner specified - would they maintain HTMLCS as the default or default to HTMLCS and aXe?
Thinking about pa11y-dashboard, the latter may cause unintentional changes to comparing historical data if relying on the graph tracking, but defaulting to all available runners makes migrating jobs to run on all runners more straightforward as I guess most would want to run on all available runners.
Just my thoughts!
I cannot find the code where it specifies the runner parameter, could you please point it out? I ask because pa11y documentation states that runner parameter is needed, else it'll throw an error
Hello, the default runner is htmlcs
. There are 2 built in htmlcs
and axe
which you can configure as per your choice as mentioned here . If you don't specify any the default will be used. If you configure any other runner(except these 2), then it will error.
Hope it helps!
@sangitamane Thank You! I checked it out. I was confused with the pa11y documentation, but now it's cleared.