Run Lighthouse accessibility reports against multiple websites and see an overview of the results.
Disclaimer: this is hacked together to serve a purpose. It doesn't handle errors well and it's not that customisable. It just runs a11y lighthouse tests against URLs you give it.
Requires NodeJS v16.13.1
Clone this repo and run.
npm install
Make changes to the included the settings.json
file to run the audits against your chosen URLs. settings-example.json shows settings for a full project.
{
"reportsLocation": "./reports",
"sites": [
{
"title": "Example Site",
"folder": "example.com",
"urls": [
{
"title": "Example Homepage",
"url": "https://www.example.com"
}
]
}
]
}
Option | Description |
---|---|
reportsLocation | Sets the output location of reports and summaries. |
Option | Description |
---|---|
title | Title of the website or project. Used in report titles. |
folder | Name of the folder for reports to be stored in. Must be unique. |
urls | Array of URLs within your website or project. |
Option | Description |
---|---|
title | Title of the page. Used in the reports. |
url | URL of the page being tested. |
The script will test each URL sequentially and generate a report for each site/project with a breakdown of a11y issues on each page.
npm start