Currently using the following commands under the jobs:test subtree in my CircleCI config.yaml:
steps:
- checkout
- run: npm install
- run: |
set -e
npm run test
My pa11y CI tests run with npm run test. Failed tests does not fail my CircleCI build. I think the reason for this is that Pa11y CI does not end its process prematurely just because there is a failed test (it keeps on testing until it tests every page).
I added set -e per this CircleCI post. But it doesn't seem to make a difference.
Currently using the following commands under the jobs:test subtree in my CircleCI config.yaml:
My pa11y CI tests run with npm run test. Failed tests does not fail my CircleCI build. I think the reason for this is that Pa11y CI does not end its process prematurely just because there is a failed test (it keeps on testing until it tests every page).
I added set -e per this CircleCI post. But it doesn't seem to make a difference.
How do I get CircleCI to fail when Pa11y fails?