Closed fplourde closed 6 years ago
Hi Frédéric,
could you check your delta type setting? If it is still set to "absolute" the policy does not compare the percentage values but the absolute blocks covered. As you mentioned yourself, the number of total blocks covered has decreased.
René
Delta type Absolute Value
is indeed checked, but hidden by Force Coverage Improvement
.
Funny that a hidden setting impact how the task is running.
Thanks for the help and have a nice day
Hi Frédéric,
thanks for the feedback. Of course, you're absolutely right, the hidden option should not affect the policy. I forgot that we force percentage values when using the "Force Coverage Improvement" option. Thus, the issue is indeed a bug. I'll release a new version soon that fixes this problem and automatically compares percentage values in your case.
René
Hey,
the issue has been fixed and the new version (v5.0.4) of the task will be released tomorrow. I'm closing the issue now. If you have any additional problems or if the problem occurs again with the new version, please reopen or create a new issue.
Thanks and happy building! René
The percentage from our last build is 94.8%, and the current one is 95.3, but the task
Check build quality
failed.Note the build had more code but less covered blocks. We are using the attribute
[ExcludeFromCodeCoverage]
to remove configuration specific code from Code coverage.Here our configurations: We are on a private TFS VNext server and using
Check build quality 5.0.2
.Error:
The code coverage value (95.339%, 225 blocks) is lower than the value of the previous build! The previous build had a coverage value of 94.8207% (238 blocks).
Logs: