Open gustahrodrigues opened 7 years ago
From src/main/java/com/github/terma/jenkins/githubprcoveragestatus/CoberturaParser.java:
if (lineRate > 0 && branchRate == 0) {
return lineRate;
} else if (lineRate == 0 && branchRate > 0) {
return branchRate;
} else {
return lineRate / 2 + branchRate / 2;
}
Thus, you're getting the average of 0.4451 and 0.6619, which is ~ 55%.
It might help if this were documented, however.
Hi guys,
I think that we're publishing the wrong percentage on Github. I think it should be about 62% at least.
Information: Coverage tool: Python coverage XML commands:
HTML commands:
Github:
HTML result:
Jenkins job:
Master record: