Skip to content

Commit 1a5f844

Browse files
authored
Update code coverage policy (#5083)
Enabling the build to not fail if the code coverage value is maintained
1 parent fd5f0ba commit 1a5f844

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/template-build-and-run-all-tests.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs: #Build and stage projects
7474
checkCoverage: '$(CodeCoverageGateEnabled)'
7575
coverageFailOption: 'build'
7676
coverageType: 'lines'
77-
allowCoverageVariance: true
78-
coverageVariance: 1 # Specify by how much the current amount of covered or uncovered code (depending on the parameter *Use Uncovered Elements*) may deviate from the previous value before the policy fails. Please be aware that the code coverage may slowly but steadily decrease from build to build if you allow a code coverage variance. Thus, you should keep this value as low as possible.
77+
allowCoverageVariance: false
78+
coverageVariance: 0.01 # Specify by how much the current amount of covered or uncovered code (depending on the parameter *Use Uncovered Elements*) may deviate from the previous value before the policy fails. Please be aware that the code coverage may slowly but steadily decrease from build to build if you allow a code coverage variance. Thus, you should keep this value as low as possible.
7979
treat0of0as100: true
80-
forceCoverageImprovement: true
8180
coverageUpperThreshold: '90'
8281
includePartiallySucceeded: false
8382
fallbackOnPRTargetBranch: false

0 commit comments

Comments
 (0)