quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.78k stars 2.68k forks source link

quarkus-jacoco aggregated coverage report inconsistent to jacoco.exec in Quarkus 3.5.0 #36846

Open syr opened 1 year ago

syr commented 1 year ago

Describe the bug

We have a multimodule project with module structure:

configured as documented in https://quarkus.io/guides/tests-with-coverage#working-with-multi-module-projects and generate jandex index for all modules.

Now after "mvn clean install" the jacoco.exec and reports are created as expected under root/target. However, the report contains only coverage for

see: grafik

Opposite to this, the jacoco.exec actually contains coverage data for org.acme.testcoverage.service

Expected behavior

reports containing coverage for all modules:

Actual behavior

reports containing coverage only for last built module (common only included due to a test call service2->common):

How to Reproduce?

https://github.com/syr/tests-with-coverage-multimodule-quickstart/tree/3.5

Output of uname -a or ver

No response

Output of java -version

openjdk version "17.0.2" 2022-01-18 OpenJDK Runtime Environment Temurin-17.0.2+8 (build 17.0.2+8) OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode, sharing)

Quarkus version or git rev

3.5.0

Build tool (ie. output of mvnw --version or gradlew --version)

apache-maven-3.8.6-bin

Additional information

No response

quarkus-bot[bot] commented 1 year ago

/cc @geoand (testing)

RickVerkuijlenMentech commented 8 months ago

What is the status of this issue? I experience the same!

syr commented 8 months ago

@RickVerkuijlenMentech no news. As a cumbersome but working workaround I aggregate the coverage results by plain jacoco-maven-plugin's report-aggregate in a separate jacoco dedicated maven module