Skip to content

A simple Node.js server that runs tests with Pa11ys API

Notifications You must be signed in to change notification settings

filiphuhta/pa11y-test-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pa11y Test Server

This is a simple test server that runs Pa11y tests against specified URL:s.

Getting started

  1. run npm install to install all node_modules.
  2. 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
}
  1. If "useBasicAuth": true is set to true add a .env file with the fields USERNAME and PASSWORD in the project root.
USERNAME=example@example.com
PASSWORD=XXXXXXXXX
  1. run the application with the command npm run start
  2. Now should it log in the console "Pa11y Test Server app listening on port 3XXX!"
  3. Visit the address that the server is listening on. (http://localhost:3000)

If everything works as expected you should get results like this: Image of Pa11y test server

Author

  • Filip Huhta

About

A simple Node.js server that runs tests with Pa11ys API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published