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
519 stars 63 forks source link

Save to file even if the job fails #97

Open fam4r opened 4 years ago

fam4r commented 4 years ago

Use case: in a CI Job it would be nice to have an artifact with reported errors/warnings/etc. and also let the job fail.

At the moment, using the redirection (eg. > accessibility-report.html), pa11y-ci fails and it doesn't write anything to file.

Using pa11y-ci v2.3.0 and pa11y-reporter-html v1.0.0 in a GitLab pipeline.

aarongoldenthal commented 4 years ago

@fam4r If it help, this is a project I maintain for running pa11y-ci in GitLab and the README has a handful of example GitLab CI jobs.