Closed mklpanasiuk closed 1 year ago
I will have a look as soon as possible.
I guess your cobertura file was generated with coverlet?
I don't know how coverlet calculates the attributes branches-covered="43"
and branches-valid="56"
.
But they are not consistent with the other elements in this file.
If you sum up all the <line />
elements with the following attribute: condition-coverage="X% (Y/Z)"
you will get the following values:
Number of covered branches: 42
Total number of branches: 52
ReportGenerator calculates the same numbers 42/52 (Cobertura: 43/56).
ReportGenerator does not evaluate the attributes branches-covered
and branches-valid
, it tracks all the branches in the coverage file and calculates it's own sums.
Thank you for the reply!
Describe the bug Wrong number for branchcoverage after reportgenerator for cobertura.xml
To Reproduce
NOTE: the original file coverage.cobertura.xml has been sent to your email adress