# Testing with pa11y

This [resource](https://bitsofco.de/pa11y/) is a good start to create your own testing pipeline.

## Quick and simple overview

```bash
npm install -g pa11y
pa11y https://data.beta.grandlyon.com/fr/accueil
```

## Display only critical errors

```bash
pa11y https://data.beta.grandlyon.com/fr/accueil --ignore "warning;notice"
```

## Using the pa11y-ci

```bash
npm install -g pa11y-ci
```

Then create a **.pa11y1** json file.

```bash
{
  "urls": [
    "https://data.beta.grandlyon.com/fr/accueil"
  ]
}
```

To run the report on multiple URLs:

```bash
pay11-ci
```

It is also possible to save the report as a json file:

```bash
pay11-ci --json > report.json
```