New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Provide a way for .a11ytest files to be retained even if a scan produces no errors #935
Comments
Out of curiosity, do you mind me asking what processing you are doing with the a11ytest result file and how it would help having a result even if there were no errors? Is it about the screenshot that is part of it? |
We have created an automation unit test case for our project using axe-windows. Suppose we are running the automation unit test every week after development changes and sometimes we encounter an error if we are having the last working file without any error we can compare and keep track of what minor or major changes have affected so we are getting error. |
I have a diagnostic branch (see changes) that adds this functionality, but it's on the |
This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights! |
We agree that this makes sense. Plan is to control the setting via the |
#### Details #935 requests that we provide a way for CLI users to create an `.a11ytest` file even when no errors are reported. This adds a `--alwayssavetestfile` option to the CLI, then plumbs it through to take effect. People using the automation interface can access this directly via the `Config.Builder.WithAlwaysSaveTestFile` method. ##### Motivation Address #935 ##### Context <!-- Are there any parts that you've intentionally left out-of-scope for a later PR to handle? --> <!-- Were there any alternative approaches you considered? What tradeoffs did you consider? --> #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [x] Addresses an existing issue: #935 --------- Co-authored-by: Dave Tryon <45672944@DaveTryon@users.noreply.github.com>
Released as part of 2.2.0. Closing as complete. |
In IScanner.Scan() method output file of .a11ytest is only created when there is an error.
There is a note added (Note: no output files will be written if no errors were found.)
It should be based on some settings if there is no error but we want to review the file later it is not possible at the moment.
So it should be based on some settings if the user wants a file each time to be generated whether there is an error or not they can set the setting and get the file.
The text was updated successfully, but these errors were encountered: