Hi,
I have a Gradle (Android) project and I am in the process of getting code coverage (through Jacoco) correctly reported to SonarQube in an Android project using JUnit5 and would like your help to reason what is going wrong.
The problem that I'm experiencing is that code coverage is only reported for the JUnit4 tests in SonarQube.
My .exec files contain all the information about coverage of both JUnit4 and JUnit5 tests (referenced through
sonar.jacoco.reportPath) according to my IDE. As for the test reports (referenced through
sonar.junit.reportsPath) I believe that there is an issue:
https://github.com/aurae/android-junit5/issues/17
To speed things up (determine where the problem is) I wanted to check with you how SonarQube computes code coverage. Is it correct that the two reports (jacoco and junit) are combined to form the final result? Basically, confirming that the exec file might be complete but SonarQube still showing lower coverage numbers if the test report is not complete?
I appreciate your help in this.
Regards
Alix