We are using Developer Edition Version 9.9.3 (build 79811). We have and Android application which was developed using java and kotlin. Our requirement is to generate a code coverage report and convert it into a format readable by sonarqube so the code coverage percent will be displayed on the project dashboard.
We tried to generate the test report manually and covert into format compatable with sonarqube.
we are unable to see the coverage percent either or Newcode or overall code.
Is anyone facing the similar issue. please help me on this.
It’s in jacoc.
INFO: Sensor PythonXUnitSensor [python] (done) | time=382ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
INFO: Sensor Kotlin Sensor [kotlin]
INFO: 277 source files to be analyzed
With a Java / Kotlin project, you’re presumably building with Gradle. So you should be analyzing with it too. Specifically, the SonarScanner for Gradle.