Closed giuliastro closed 3 years ago
When I tried from the terminal I was getting something similar to what you describe. However I was able to get a solid output by adding a script to package.json.
"access:ci": "pa11y-ci -j > 508_results.json"
When not returning JSON output, pa11y-ci
writes test execution status to stdout, but test failures to stderr. The redirect you have above only redirects stdout to the file, hence the results you see. To redirect both both stdout and stderr to the file, try:
pa11y-ci > pa11y-ci-results.txt 2>&1
Thanks for creating this issue. It looks like this is now fixed, feel free to reopen the issue if not.
Hello, how do you redirect the output of pa11y-ci to a file? I am trying this way:
pa11y-ci --sitemap https://website.../page-sitemap.xml > test.txt
and this way:
pa11y-ci -s https://localeyes.com/page-sitemap.xml > test.txt
I can see the output on screen but all I get is empty files containing just the first line and nothing else:
Running Pa11y on XX URLs:
Thank you in advance.