Comments (1)
After thinking about this a little, if pa11y-ci were updated to simply write the value returned from a reporter to stdout, as pa11y does (in most cases), then it would do the same for all analyzed files. The results could be piped to a file, but the result wouldn't be valid for the given format (excluding cli
for the moment, and technically tsv
and csv
would but would have headers repeated for every file).
An alternative proposal - create a new reporter that's essentially a shim for using any pa11y reporter:
- Assume one reporter, requiring configuration to specify the pa11y reporter
- This reporter would take the output from the specified pa11y reporter
results
function, create a unique file name based on the URL, and save the results to the file (which would then be valid for the given format) - The reporter configuration could also include a destination directory
- My original thought was exclude the
cli
reporter, although it could be used, but would probably want to strip out the ANSI escape codes - For errors, the output from the reporter
error
function would be written to stderr
For the pa11y reporters:
- The
csv
,html
, andtsv
reporters would work with the above implementation - The
json
reporter writes to stdout, but could be changed to simply return the results, which would then work with the implementation above. Pa11y already writes that output to stdout, so would be functionally transparent to the user. - The
cli
reporter could be updated to write to stdout itself (as thejson
reporter does now). This would be transparent for pa11y, but would allow the reporter to be used directly with pa11y-ci with the expected output. In this case it is valid and logical output on its own.
from pa11y-ci.
Related Issues (20)
- Update pa11y dependency to allow minor updates
- 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
- HTML reporters are unable to load HOT 6
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.