This is a simple test server that runs Pa11y tests against specified URL:s.
- run
npm install
to install all node_modules. - Update
data.json
file with urls that Pa11y should run tests against. Also configure if basic authorization should be used to log in to the website.
{
"urls": [
"https://github.com",
"https://google.com"
],
"useBasicAuth": false
}
- If
"useBasicAuth": true
is set totrue
add a.env
file with the fields USERNAME and PASSWORD in the project root.
USERNAME=example@example.com
PASSWORD=XXXXXXXXX
- run the application with the command
npm run start
- Now should it log in the console "Pa11y Test Server app listening on port 3XXX!"
- Visit the address that the server is listening on. (http://localhost:3000)
If everything works as expected you should get results like this:
- Filip Huhta