coveralls-maven-plugin icon indicating copy to clipboard operation
coveralls-maven-plugin copied to clipboard

Wrong coverage reported with a merged jacoco.exec file

Open Zlika opened this issue 8 years ago • 3 comments

Hi,

The coverage reported by Coveralls is very different from the one reported by Jacoco. My project is this one: https://github.com/Zlika/reproducible-build-maven-plugin I have unit tests and integration tests. The 2 jacoco.exec files produced are merged into a single jacoco.exec file (using the "merge" goal of the jacoco-maven-plugin). From this file, I produce a Jacoco report and I also use coveralls-maven-plugin to send the coverage to coveralls. However, the coverage reported by coveralls (cf. https://coveralls.io/builds/3774697) is very different from the one on the jacoco report (cf. http://zlika.github.io/reproducible-build-maven-plugin/jacoco/io.github.zlika.reproducible/index.html). In particular, all the classes that are only tested during the integration tests shows a 0% coverage with coveralls (e.g. StripJaxbMojo.java and StripJarMojo.java). It seems like coveralls only takes into account the coverage of the unit tests, but I don't know how it's possible because the jacoco report is ok and takes into account both unit and integration tests.

Regards, Thomas

Zlika avatar Oct 08 '15 08:10 Zlika