pa11y / pa11y-ci

Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
https://pa11y.org
GNU Lesser General Public License v3.0
525 stars 63 forks source link

CLI output + save json file? #55

Open Veraxus opened 6 years ago

Veraxus commented 6 years ago

Is there a way to generate the standard CLI output and save a JSON file without having to run the test twice?

Right now, if I run pa11y-ci --json > pa11y-results.json I get a JSON file, but none of the standard CLI output.

rowanmanning commented 6 years ago

Currently there's not. I can mark this as a feature request and see if anyone else has a need for this :)

mike-potter commented 4 years ago

Was this ever implemented? We'd also really like to run pa11y-ci in our CI environment and have the normal CLI log file, but also capture the JSON output so we can download that as an artifact for use in other tools. Running it twice just slows down our CI process.

Would propose something like

pa11y-ci --json=pa11y-results.json

where the json option takes an optional filename rather than just sending it to STDOUT.

josebolos commented 4 years ago

Hi @mike-potter,

I agree that this would be a good idea. Unfortunately, this has not been implemented yet.