Description
What happened?
Hello, first of all just wanted to say that I really like this project, it's one of the best coverage actions I've used so far!
I think the new-uncovered-statements-failure
and coverage-reduction-failure
behaviors are swapped. When using coverage-reduction-failure
, even when overall coverage increases, my action fails if there's any Missing > 0
in the diff report.
According to pycobertura
's docs on diff exit codes, we have the following exit codes:
2
: the changes worsened the overall coverage3
: the changes introduced uncovered statements but the overall coverage is still better than before
As you can see, pycobertura
's error exit code 3
indicates that overall coverage increased despite new uncovered lines. However, when we check this action's code, we see that coverage-reduction-failure
checks for exit code 2
, not 3
.
Line 372 in 4ee65a3
Meanwhile, the new-uncovered-statements-failure
matches the worsened the overall coverage descripition, which associates any increase in uncovered line as failures.
Line 378 in 4ee65a3
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.