Fork de pa11y-reporter-junit pour accepter la version ^6 de pa11y
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rudy Masson bee8eab3f4 debug2 1 week ago
lib debug2 1 week ago
test/unit Update report format to a more readable one 4 years ago
.editorconfig Initial commit 4 years ago
.eslintignore Initial commit 4 years ago
.eslintrc.js Initial commit 4 years ago
.gitignore Initial commit 4 years ago
.travis.yml Initial commit 4 years ago Initial commit 4 years ago Initial commit 4 years ago
LICENSE Initial commit 4 years ago
Makefile Initial commit 4 years ago
Makefile.node Initial commit 4 years ago Fix an error in README 4 years ago
package-lock.json Update dev dependencies 4 years ago
package.json Bump version to 1.1.0 4 years ago

Pa11y JUnit Reporter

A JUnit reporter for Pa11y 5.0.

NPM version Build status LGPL-3.0 licensed

Table Of Contents


Pa11y JUnit Reporter is compatible with Pa11y 5.0. It will not work with older versions of Pa11y.



Install Pa11y and Pa11y JUnit Reporter with npm (locally or globally is fine):

npm install -g pa11y pa11y-reporter-junit

Run Pa11y using the JUnit reporter:

pa11y --reporter junit


Assuming you've installed both Pa11y and Pa11y JUnit Reporter:

const junit = require('pa11y-reporter-junit');
const pa11y = require('pa11y');

pa11y('').then(results => {
    // Returns a string with the results formatted as JUnit XML
    const junitResults = junit.results(results);


There are many ways to contribute to Pa11y JUnit Reporter, we cover these in the contributing guide for this repo.

If you're ready to contribute some code, clone this repo locally and commit your code on a new branch.

Please write unit tests for your code, and check that everything works by running the following before opening a PR:

make ci

You can also run verifications and tests individually:

make verify              # Verify all of the code (ESLint)
make test                # Run all tests
make test-unit           # Run the unit tests
make test-unit-coverage  # Run the unit tests with coverage


Pa11y JUnit Reporter is licensed under the Lesser General Public License (LGPL-3.0).
Copyright © 2019, Maciej Lewkowicz