Closed IvanAlekseev closed 4 years ago
Hey,
you didn't configure the coverage delta type to it uses absolute values by default (see https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/CodeCoveragePolicy.md#user-content-coveragedeltatype). Just add coverageDeltaType: 'percentage'
to the inputs and it'll work.
I guess I'll put a new item on the backlog to put the delta type into the message as well. I'd love to change the default to percentage, but that would be a breaking change and I'm not sure it's worth the effort.
@ReneSchumacher it works with updated settings. Thank you for so quick reply. Having percentages by default will certainly be a better option
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@6
displayName: 'Check code coverage'
inputs:
checkWarnings: false
checkCoverage: true
coverageFailOption: build
coverageType: branches
coverageDeltaType: percentage
baseBranchRef: refs/heads/master
Got it. We're in the process of releasing a new version and this will be v7.0.0 and have the new default. Since this is a breaking change, you'll have to update the task version in your YAML file to benefit from the new default value.
After updating packages from coverlet.collector 1.2.0 to 1.2.1 I receive the following error:
My task setup:
In my understanding 93.8356% is definitely higher than 92.8571% đŸ˜‰ I guess the task tries to compare the number of branches covered, not the percentage. Can it be fixed?