Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can pa11y be used as unit tests in CI pipeline and make the build fail? #704

Open
fingers10 opened this issue May 9, 2024 · 2 comments
Open

Comments

@fingers10
Copy link

I'm not able to find any docs/tutorial that shows how I can use pa11y as a unit test in my web app and make build fail in CI pipeline if test fails. I would like to shift left more than to run this as scheduled tests in pipeline. Please can anyone assist me on this possibility?

@hollsk
Copy link
Member

hollsk commented May 9, 2024

Hey @fingers10 ! Thanks for using pa11y 😄

You want Pa11y-CI for this use case. Hope it's what you're looking for 🙂

@fingers10
Copy link
Author

@hollsk Many thanks for your response. Please can you help me with any documentation of Pa11y-CI which shows how to make the build fail in CI pipeline when the code added has accessibility issues? I don't want Pally to run in separate pipeline and test a hosted site. I would like to shift left and catch them in development cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants