I use SonarQube 9.9 enterprise edition.
I think something is wrong in the coverage report.
I’m generating, a jacoco.exec report with the command line “mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.projectKey=XXXXX”. The jacoco.exec is well sent to sonar but some classes are showing with 0% of coverage. When I open the jacoco.exec with another tools (intelli J) thoses classes are showing 95% coverage. (it’s the same target/jacoco.exec because I extract it as a CI artifact)
Which means that the coverage result is in the jacoco.exec, but sonar ignores it. What’s funny is that the class calling the different methods is in the coverage report.
I checked the different exclusions patterns, but none are excluding my classes.
Please, can someone help me ? … It’s my third project using the enterprise edition it’s the first time I get this problem.
One more thing. The test is in a different maven submodule but every submodules are appending in one unique jacoco.exec.