Im in need of a way to compare 2 different coverage reports on the unit test coverage aspect. The task is to fail a jenkins job if unit test coverage in 1 report is lower than in the other. Im not using any jenkins-jacoco plugins only jacoco and sonar. Currenctly im stuck on the idea of how to get an overall coverage from a exec/csv/html or xml in the way that it can be auto compared with the other one. Fresh ideas are welcome.
Hello,
what do you want to compare? The check goal is not sufficient for your needs? Should both reports be created at the same time? From the same sources? Should the overall (line, branch) coverage be compared or per file/package?
Regards
Mirko
--
Sent from my mobile
Morning,
Im in need of a way to compare 2 different coverage reports on the unit test coverage aspect. The task is to fail a jenkins job if unit test coverage in 1 report is lower than in the other. Im not using any jenkins-jacoco plugins only jacoco and sonar. Currenctly im stuck on the idea of how to get an overall coverage from a exec/csv/html or xml in the way that it can be auto compared with the other one. Fresh ideas are welcome.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I want to compare unit test coverage percentage. The point is to check if coverage percentage decreased from the last time we run coverage check on the same project, so 1 number is stored somewhere in a file. In the meantime i managed to figure out what to do, the only problem now is how to get the percentage from the report-html file, xpath seems to strugle.
the probleam is ant-xpath fails because the report.xml has
<!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.0//EN" "report.dtd">
line in it, without doctype line it wortks perfectly, im using andariel-1.2.3 for xpath.
Marc,
maybe we should just add the complete URL as reference, then it is my understanding that XML processors pick up the DTD automatically.
Regards
Mirko
--
Sent from my mobile
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
Marc,
I understand and agree with your statements. On the other side anyone using Maven has to have an internet connection now and then. Using a catalog file does help to work with a local copy for DTD. Two solutions:
1. Deploy the DTD as additional artifact to Maven Central and reference the repo1 location.
2. What about copying the DTD automatically next to the XML output?
Googling for DTDs is IMO no good solution either :-)
I have switched reply-to to the developers list as not every user might be interested in this discussion.
Regards
Mirko
--
Sent from my mobile
That aside, is there a way to handle classes with the same name besides excluding them ?