Comments (6)
Thanks @careyestes, a couple of people have reported a similar issue, and this may be the cause (didn't hear back on the others). I did check and both global or both local work, the mix is the problem.
from pa11y-ci.
Hi @careyestes!
I'm not sure what documentation you're following. pa11y-reporter-html
is a reporter that comes with pa11y
by default, and it doesn't require to be installed separately.
pa11y-ci-reporter-html
is a reporter for pa11y-ci
(and not pa11y
), developed by @aarongoldenthal. You should have a look at it's readme and try to follow the instructions to run it:
https://gitlab.com/gitlab-ci-utils/pa11y-ci-reporter-html/-/blob/master/README.md
If you find any problems with pa11y-ci
, feel free to create a new issue, and include the commands that you've run, and the output shown by the tools, and we'll be happy to have a look.
If you're having problems with pa11y-ci-reporter-html
I would suggest so create an issue in its repo.
Thank you!
from pa11y-ci.
To answer
I'm not sure what documentation you're following.
I am following the documentation in the repo connected to this issue board: https://github.com/pa11y/pa11y-ci#reporters which says to use pa11y-reporter-html
.
If you find any problems with pa11y-ci, feel free to create a new issue, and include the commands that you've run, and the output shown by the tools, and we'll be happy to have a look.
The command I am running is: pa11y-ci https://pa11y.org/
and my config looks like this:
{
"defaults": {
"timeout": 10000,
"standard": "WCAG2AA",
"runners": ["axe"],
"reporters": [
["json", { "fileName": "./www/a11y-reports/json/results.json" }],
[
"pa11y-ci-reporter-html",
{ "destination": "./www/a11y-reports/html", "includeZeroIssues": true }
],
"pa11y-reporter-html"
]
}
}
I have tried both reporters as I mentioned. Both throw the same Unable to load reporter
error. Now if this is an issue with the pa11y-ci-reporter-html
package, then I will be happy to post it there, but I have no way of knowing that. Just want to confirm I am posting the issue in the repo for the pa11y-ci
package. The comment about where I was following the documentation threw me a bit.
from pa11y-ci.
@careyestes That config ran fine for me. That message is pa11y-ci trying to load the reporter and failing (it tries to require
the module name, and if that fails tries to load as a filename, so it's not finding the reporter packages). Are pa11y-ci and the reporters installed globally/locally (it shouldn't make a difference, but just trying to replicate)? If you run npm list pa11y-ci-reporter-html
does it show the reporter listed?
On pa11y-reporter-html
, I expect it's probably not what you want. The output for the pa11y reporters is currently not output by pa11y-ci per #174. The pa11y-ci-reporter-html
reporter will generate an equivalent HTML report per page.
from pa11y-ci.
@aarongoldenthal Ive got pally-ci
installed globally. pa11y-ci-reporter-html
is installed locally. If I run the list command I get:
└── [email protected]
It was my assumption that the ci reporter was the one I should use, but the documentation says use pa11y-reporter-html
, so I was following those directions. It seems unlikely, but could the issue be because I have both pa11y-reporter-html
and pa11y-ci-reporter-html
installed locally? I will also try to install the reporter globally and see if it runs.
from pa11y-ci.
The local installation was the issue. You must have both pa11y-ci
and pa11y-ci-reporter-html
installed globally. The documentation should be updated.
from pa11y-ci.
Related Issues (20)
- Notices not included when running from command line HOT 1
- request: add action(s) to write text to console HOT 5
- pa11y headers configuration problem HOT 2
- Using `--sitemap-exclude` command-line option. HOT 1
- Feature request: Support full error messages in getUrlsFromSitemap
- How do you output HTML results? HOT 4
- Using Cookies or useIncognitoBrowserContext in Pa11y-ci HOT 1
- Timeout is ignored - wait for element HOT 1
- Debug sitemap mode HOT 1
- Option to pass environment variable in .pa11yci file HOT 4
- Support for large sitemaps when sitemap.xml is using sitemap index files HOT 4
- Prepending base URL HOT 6
- Failing to run on ubuntu-22.04 HOT 4
- add support for xpath based locators
- Support for wait for network call
- WCAG 2.1 and 2.2 HOT 1
- Pa11y-ci support for WCAG 2.2 HOT 5
- Sitemap could not be loaded: pa11y-ci with --sitemap and proxy
- Rate Limiting Option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pa11y-ci.