microsoft / axe-windows

Automated accessibility testing engine for Windows applications
MIT License
136 stars 62 forks source link

feat: Add ability to always save test file #948

Closed DaveTryon closed 1 year ago

DaveTryon commented 1 year ago

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

Pull request checklist

codecov-commenter commented 1 year ago

Codecov Report

Merging #948 (22945d3) into main (4fc19c3) will increase coverage by 1.04%. The diff coverage is 79.13%.

:exclamation: Current head 22945d3 differs from pull request most recent head 9dd0f0d. Consider uploading reports for the commit 9dd0f0d to get more accurate results

@@            Coverage Diff             @@
##             main     #948      +/-   ##
==========================================
+ Coverage   73.70%   74.74%   +1.04%     
==========================================
  Files         398      423      +25     
  Lines       12046    13053    +1007     
==========================================
+ Hits         8878     9757     +879     
- Misses       3168     3296     +128     
Impacted Files Coverage Δ
src/Actions/Actions/ControlPatternAction.cs 0.00% <0.00%> (ø)
src/Actions/Actions/CustomUIAAction.cs 0.00% <0.00%> (ø)
src/Actions/Actions/ListenAction.cs 0.00% <0.00%> (ø)
src/Actions/Actions/PrivacyExtensions.cs 100.00% <ø> (ø)
src/Actions/Actions/SetDataAction.cs 0.00% <0.00%> (ø)
...rc/Actions/Attributes/InteractionLevelAttribute.cs 0.00% <0.00%> (ø)
src/Actions/Misc/ExtensionMethods.cs 7.46% <0.00%> (-31.60%) :arrow_down:
src/Actions/Resources/ErrorMessages.Designer.cs 0.00% <ø> (-55.56%) :arrow_down:
src/Automation/AxeWindowsAutomationException.cs 33.33% <ø> (-33.34%) :arrow_down:
src/Automation/Data/OutputFile.cs 88.88% <ø> (ø)
... and 144 more

... and 241 files with indirect coverage changes