Skip to content

Commit 1212123

Browse files
homotechsualCopilot
andcommitted
feat(ci): increase minimum coverage threshold for Unit suite to 50%
Co-authored-by: Copilot <copilot@github.com>
1 parent ddb4992 commit 1212123

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ jobs:
141141
shell: pwsh
142142
run: |
143143
$ErrorActionPreference = 'Stop'
144-
pwsh -NoProfile -File "$env:GITHUB_WORKSPACE\DevOps\Quality\test.ps1" -Suite Unit -Verbosity Detailed -CodeCoverage -MinimumCoveragePercent 45
144+
pwsh -NoProfile -File "$env:GITHUB_WORKSPACE\DevOps\Quality\test.ps1" -Suite Unit -Verbosity Detailed -CodeCoverage -MinimumCoveragePercent 50
145145
146146
- name: Upload unit test results
147-
pwsh -NoProfile -File "$env:GITHUB_WORKSPACE\DevOps\Quality\test.ps1" -Suite Unit -Verbosity Detailed -CodeCoverage -MinimumCoveragePercent 50
147+
if: always()
148148
uses: actions/upload-artifact@v6
149149
with:
150150
name: pester-unit-results

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ Use the docs website for the most up-to-date generated command reference and dev
3838

3939
Code coverage is collected in CI for the `Meta` and `Unit` suites using the standard test entrypoint in `DevOps/Quality/test.ps1`.
4040

41-
CI enforces a minimum 45% coverage threshold for the `Unit` suite.
41+
CI enforces a minimum 50% coverage threshold for the `Unit` suite.
4242

4343
Coverage artifacts are published on every CI run as:
44-
CI enforces a minimum 50% coverage threshold for the `Unit` suite.
4544

4645
* `code-coverage-meta-results` (`.artifacts/CodeCoverage.meta.xml`)
4746
* `code-coverage-unit-results` (`.artifacts/CodeCoverage.unit.xml`)

0 commit comments

Comments
 (0)