0.79.4 • Published 2 months ago
@siteimprove/alfa-test-utils v0.79.4
alfa-test-utils
Utilities for running Alfa locally and uploading results to the Siteimprove Intelligence Platform.
Installation
$ npm install --save-dev @siteimprove/alfa-test-utils
or
$ yarn add --dev @siteimprove/alfa-test-utils
Basic usage
Use scraper packages such as @siteimprove/alfa-playwright
to grab a page, then a simple test script could look like this:
import { Audit, Rules, SIP } from "@siteimprove/alfa-test-utils";
Audit.run(page, { rules: { include: Rules.aaFilter } }).then((outcomes) => {
SIP.upload(outcomes, {
userName: process.env.SI_USERNAME,
apiKey: process.env.SI_API_KEY,
testName: "WCAG 2.2 AA conformance test",
}).then(console.log);
});
See the full documentation for detailed usage instructions.
0.79.3
2 months ago
0.79.2
3 months ago
0.79.4
2 months ago
0.78.0
4 months ago
0.77.1
5 months ago
0.76.2
7 months ago
0.77.0
5 months ago
0.76.1
7 months ago
0.74.3
8 months ago
0.79.1
4 months ago
0.78.2
4 months ago
0.77.3
5 months ago
0.79.0
4 months ago
0.78.1
4 months ago
0.77.2
5 months ago
0.76.0
7 months ago
0.75.0
7 months ago
0.74.0
9 months ago
0.74.2
9 months ago
0.74.1
9 months ago
0.73.4
9 months ago
0.73.3
9 months ago
0.73.2
10 months ago
0.72.2
10 months ago