18F / pages

DEPRECATED: Publishing platform for 18F sites a la GitHub pages
https://pages.18f.gov
Other
63 stars 17 forks source link

Automated accessibility testing/reporting #5

Open adelevie opened 9 years ago

adelevie commented 9 years ago

Providing accessibility reports for all of the sites under pages.18f.gov would help those site owners more easily track and squash accessibility bugs.

Can we generate a list of all the public URLs under the pages.18f.gov domain?

The main dependency for actually running the tests would be pa11y, an npm module, which could fit nicely inside hookshot.js.

You can run pa11y against an entire site that has a sitemap.xml with this:

wget -q http://localhost:1313/sitemap.xml --no-cache -O - | egrep -o "http://localhost:1313[^<]+" | xargs -I '{}' pa11y {}  

Also, I totally get the merits of leaving testing/CI up to each individual repo and not centralizing this. But it's still worth considering.