Uploading Your Accessibility Results to axe Developer Hub
Using axe Developer Hub with the Node.js APIs
You can upload your accessibility results to axe Developer Hub and use its features to track fixes to accessibility problems.
There are two steps to follow to upload your results from the web APIs to axe Developer Hub, as shown in the following diagram:
-
Your test code writes results (a
.jsonfile containing your accessibility results) to disk. Modify your test code to create an accessibility results file. See Creating Accessibility Results below for more information about modifying your code. -
Use the CLI tool
axewith thedevhubsubcommand to upload your results to axe Developer Hub by specifying the results file, your personal API key, and your project ID. For example:axe devhub <results.json> --axe-devhub-api-key <API-key> --axe-devhub-project-id <project-ID>
See Uploading to axe Developer Hub for more information about using the CLI to upload results to axe Developer Hub.
Creating Accessibility Results
You use the @axe-devtools/logger package to write the results file. See Logging with axe DevTools Node APIs for code examples.
You can also use the @axe-devtools/reporter package because it extends the AxeDevToolsLogger class, so it can also write results files. See Generating Reports from axe DevTools JSON Results.
