Skip to content

Commit

Permalink
Update code coverage policy (#5083)
Browse files Browse the repository at this point in the history
Enabling the build to not fail if the code coverage value is maintained
  • Loading branch information
trwalke authored Jan 14, 2025
1 parent fd5f0ba commit 1a5f844
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/template-build-and-run-all-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ jobs: #Build and stage projects
checkCoverage: '$(CodeCoverageGateEnabled)'
coverageFailOption: 'build'
coverageType: 'lines'
allowCoverageVariance: true
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.
allowCoverageVariance: false
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.
treat0of0as100: true
forceCoverageImprovement: true
coverageUpperThreshold: '90'
includePartiallySucceeded: false
fallbackOnPRTargetBranch: false
Expand Down

0 comments on commit 1a5f844

Please sign in to comment.