Skip to content

Commit 3496ea1

Browse files
Add CodeCoverage_CoveragePercentTarget to workflow and update README.md
1 parent 71516aa commit 3496ea1

File tree

3 files changed

+275
-6
lines changed

3 files changed

+275
-6
lines changed

.github/workflows/Action-Test-Src-WithManifest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
Name: PSModuleTest
3434
WorkingDirectory: tests/srcWithManifestTestRepo
3535
Settings: SourceCode
36+
CodeCoverage_CoveragePercentTarget: 80

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,55 @@ jobs:
9797
| ---- | ----------- | -------- | ------- |
9898
| `Name` | The name of the module to test. The name of the repository is used if not specified. | `false` | |
9999
| `Settings` | The type of tests to run. Can be either `Module` or `SourceCode`. | `true` | |
100-
| `CodeCoveragePercentTarget` | The target code coverage percentage. | `false` | `'0'` |
101100
| `Debug` | Enable debug output. | `false` | `'false'` |
102101
| `Verbose` | Enable verbose output. | `false` | `'false'` |
103102
| `Version` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | |
104103
| `Prerelease` | Allow prerelease versions if available. | `false` | `'false'` |
105104
| `WorkingDirectory` | The working directory to use for the action. This is the root folder where tests and outputs are expected. | `false` | `'.'` |
105+
| `StepSummary_Mode` | Controls which tests to show in the GitHub step summary. Allows "Full" (all tests), "Failed" (only failed tests), or "None" (disable step summary). | `Failed` |
106+
| `StepSummary_ShowTestOverview` | Controls whether to show the test overview table in the GitHub step summary. | `false` |
107+
| `StepSummary_ShowConfiguration` | Controls whether to show the configuration details in the GitHub step summary. | `false` |
108+
| `Run_ExcludePath` | Directories/files to exclude from the run. | |
109+
| `Run_ScriptBlock` | ScriptBlocks containing tests to be executed. | |
110+
| `Run_Container` | ContainerInfo objects containing tests to be executed. | |
111+
| `Run_TestExtension` | Filter used to identify test files (e.g. `.Tests.ps1`). | |
112+
| `Run_Exit` | Whether to exit with a non-zero exit code on failure. | |
113+
| `Run_Throw` | Whether to throw an exception on test failure. | |
114+
| `Run_SkipRun` | Discovery only, skip actual test run. | |
115+
| `Run_SkipRemainingOnFailure` | Skips remaining tests after the first failure. Options: `None`, `Run`, `Container`, `Block`. | |
116+
| `Filter_Tag` | Tags of Describe/Context/It blocks to run. | |
117+
| `Filter_ExcludeTag` | Tags of Describe/Context/It blocks to exclude. | |
118+
| `Filter_Line` | Filter by file + scriptblock start line (e.g. `C:\tests\file1.Tests.ps1:37`). | |
119+
| `Filter_ExcludeLine` | Exclude by file + scriptblock start line. Precedence over `Filter_Line`. | |
120+
| `Filter_FullName` | Full name of a test with wildcards, joined by dot. E.g. `*.describe Get-Item.test1` | |
121+
| `CodeCoverage_Enabled` | Enable code coverage. | |
122+
| `CodeCoverage_OutputFormat` | Format for the coverage report. Possible values: `JaCoCo`, `CoverageGutters`, `Cobertura`. | |
123+
| `CodeCoverage_OutputPath` | Where to save the code coverage report (relative to the current dir). | |
124+
| `CodeCoverage_OutputEncoding` | Encoding of the coverage file. | |
125+
| `CodeCoverage_Path` | Files/directories to measure coverage on (by default, reuses `Path` from the general settings). | |
126+
| `CodeCoverage_ExcludeTests` | Exclude tests themselves from coverage. | |
127+
| `CodeCoverage_RecursePaths` | Recurse through coverage directories. | |
128+
| `CodeCoverage_CoveragePercentTarget` | Desired minimum coverage percentage. | |
129+
| `CodeCoverage_UseBreakpoints` | **Experimental**: When `false`, use a Profiler-based tracer instead of breakpoints. | |
130+
| `CodeCoverage_SingleHitBreakpoints` | Remove breakpoints after first hit. | |
131+
| `TestResult_Enabled` | Enable test-result output (e.g. NUnitXml, JUnitXml). | |
132+
| `TestResult_OutputFormat` | Possible values: `NUnitXml`, `NUnit2.5`, `NUnit3`, `JUnitXml`. | |
133+
| `TestResult_OutputPath` | Where to save the test-result report (relative path). | |
134+
| `TestResult_OutputEncoding` | Encoding of the test-result file. | |
135+
| `Should_ErrorAction` | Controls if `Should` throws on error. Use `Stop` to throw, or `Continue` to fail at the end. | |
136+
| `Debug_ShowFullErrors` | Show Pester internal stack on errors. (Deprecated – overrides `Output.StackTraceVerbosity` to `Full`). | |
137+
| `Debug_WriteDebugMessages` | Write debug messages to screen. | |
138+
| `Debug_WriteDebugMessagesFrom` | Filter debug messages by source. Wildcards allowed. | |
139+
| `Debug_ShowNavigationMarkers` | Write paths after every block/test for easy navigation in Visual Studio Code. | |
140+
| `Debug_ReturnRawResultObject` | Returns an unfiltered result object, for development only. | |
141+
| `Output_Verbosity` | Verbosity: `None`, `Normal`, `Detailed`, `Diagnostic`. | |
142+
| `Output_StackTraceVerbosity` | Stacktrace detail: `None`, `FirstLine`, `Filtered`, `Full`. | |
143+
| `Output_CIFormat` | CI format of error output: `None`, `Auto`, `AzureDevops`, `GithubActions`. | |
144+
| `Output_CILogLevel` | CI log level: `Error` or `Warning`. | |
145+
| `Output_RenderMode` | How to render console output: `Auto`, `Ansi`, `ConsoleColor`, `Plaintext`. | |
146+
| `TestDrive_Enabled` | Enable `TestDrive`. | |
147+
| `TestRegistry_Enabled` | Enable `TestRegistry`. | |
148+
106149

107150
### Outputs
108151

0 commit comments

Comments
 (0)