-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: Add ability to always save test file #948
feat: Add ability to always save test file #948
Conversation
@@ -16,7 +16,7 @@ You invoke the scanner by running `AxeWindowsCLI.exe`. By default, this tool get | |||
If you run the tool without parameters, you'll be presented with the help screen. An example follows: | |||
|
|||
``` | |||
AxeWindowsCLI 2.1.1 | |||
AxeWindowsCLI 2.1.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Future note--we should bump this when we update package versions after each release. It would appear that we overlooked this in the last 3 releases
src/Automation/Data/Config.cs
Outdated
@@ -117,6 +120,15 @@ public Builder WithCustomUIAConfig(string path) | |||
return this; | |||
} | |||
|
|||
/// <summary> | |||
/// Override the default behavior of only creating a11ytest files if errors are found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Override the default behavior of only creating a11ytest files if errors are found. | |
/// Configure Axe.Windows to always save an a11ytest file, even if no errors are found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tweaked this a bit
src/CLI/README.MD
Outdated
@@ -55,9 +59,10 @@ verbosity|Identifies the level of detail you want in the output. Valid values ar | |||
showThirdPartyNotices|If specified, displays the third party notices for components used by AxeWindowsCLI. This information is also available in the `thirdpartynotices.html` file that is installed with AxeWindowsCLI. | |||
delayInSeconds|Optionally inserts a delay before triggering the scan. This allows transient controls (menus, drop-down-lists, etc.) to be scanned. | |||
customUia|Optionally provides a path to a [custom UIA configuration file](../../docs/CustomUIA.md). By default, only system-defined UIA properties will be included in the scan. | |||
alwayssavetestfile|Optionally causes the test file to always be saved. By defualt, the test file is saved only if errors are found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alwayssavetestfile|Optionally causes the test file to always be saved. By defualt, the test file is saved only if errors are found. | |
alwayssavetestfile|Optionally causes the test file to always be saved. By default, the test file is saved only if errors are found. |
Codecov Report
@@ 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
|
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 theConfig.Builder.WithAlwaysSaveTestFile
method.Motivation
Address #935
Context
Pull request checklist