I have multi module maven project with 3 modules A,B and C.
When I generate jacoco coverage, I create one merged “jacoco.exec” file containing coverage for all the projects.
Project A uses projects B and C. It has all the tests. Project B and C have no tests. Since project A uses classes from B and C, merged “jacoco.exec” when loaded in intellij shows all classes to have 100% coverage.
The problem is with sonarqube - it seems that it requires to get one “jacoco.exec” report per project. So it shows coverage of 0% for B and C. Only project A has coverage of 100%.
Is it possible somehow to fix this, and use project A as source of coverage data for projects B and C?