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

Allow pa11y-ci to merge existing pa11y json reports #113

Open
simonedavico opened this issue Jun 25, 2020 · 0 comments
Open

Allow pa11y-ci to merge existing pa11y json reports #113

simonedavico opened this issue Jun 25, 2020 · 0 comments

Comments

@simonedavico
Copy link

My use case: I am running pa11y through a custom Cypress command, so that I can have a unified API to interact with/navigate through pages and extract a11y reports.

For each a11y test case, I save pa11y output to a JSON file.

I would like to be able to call pa11y-ci by passing a list of json report paths generated by pa11y, to obtain a final report equivalent to what I would get by running pa11y-ci -j.

The API could work like this:

npx pa11y-ci -j --merge ./report/home.json ./report/about.json 

It should be easy to extract the required aggregation logic from the processResults function.

Is this something you would consider for pa11y-ci? If yes, I can have a go at implementing it.

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

1 participant