Hi,
We have a multi-module android project and we have successfully generated one aggregated coverage report from Jacoco. I am trying to send it to sonar cloud but we only see the coverage from the main app and not from the rest of the modules? even though we have specified the XML path which has the full coverage of the project including all modules.
properties {
property "sonar.host.url", "http://localhost:9000/"
property "sonar.test.inclusions", "**/*Test*/**"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.tests", ["src/test/kotlin"]
property "sonar.sources", "src/main/kotlin"
property "sonar.jacoco.reportPath", "**/jacoco/*.exec"
property "sonar.coverage.jacoco.xmlReportPaths", "**/reports/jacoco/jacocoVariantNameTestReport/jacocoVariantNameTestReport.xml"
}
}
Also tried specifying sources for individual subprojects but still we can see the coverage from the main app
sonarqube {
properties {
property "sonar.sources", "src/main/kotlin"
property "sonar.jacoco.reportPath", "**/jacoco/*.exec"
}
}
}