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

Make it easier to analyze reports #257

Open
mgifford opened this issue Jan 6, 2024 · 1 comment
Open

Make it easier to analyze reports #257

mgifford opened this issue Jan 6, 2024 · 1 comment

Comments

@mgifford
Copy link

mgifford commented Jan 6, 2024

I created another script to help analyze the reports.

Right now if you scan a few sites with Purple A11y's CLI tool you'll be left with bunch of directories with HTML and CSV files in them. That's great, however it doesn't allow you to really gather the metadata behind the scan. I wanted a snapshot and not the detailed reports.

So I created a little script to crawl the CSV files and extract some very basic information that would be a very basic status report.

I wanted a consistent benchmark for our sites that allows us to demonstrate improvement over time. Seeing the individual errors is useful, but if I have scanned 1000 pages, it would make sense that there would be more errors than if I'd just scanned 100.

Knowing how many URLs, WCAG errors (for each type), axe impact status (for each type) gives a better snapshot.

Perfection is nice, but for most sites that may be unattainable, and it would be better to strive to be able to prove progress,

@mgifford
Copy link
Author

mgifford commented Jan 8, 2024

So I've pulled the data from the .csv files in https://github.com/mgifford/purple-a11y/blob/master/sitemap-tools/find-score.py

I've then calculated the total in https://github.com/mgifford/purple-a11y/blob/master/sitemap-tools/calculate-score.py

But generally I just run https://github.com/mgifford/purple-a11y/blob/master/sitemap-tools/run-both-scores.sh to access both.

By default, the script will hit those Purple A11y reports that have been created today.

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