square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 477 forks source link

Sonarqube coverage report isn't proper #571

Open alphaguy4 opened 4 years ago

alphaguy4 commented 4 years ago

Hi guys My project runs unit test on 4 emulators, which generate the coverage files.

sonarqube {
    androidVariant 'playstoreDebug'
    properties {
        ...
        property 'sonar.junit.reportsPath', "${buildDir}/allJunit"
        property 'sonar.jacoco.reportMissing.force.zero', true
        property 'sonar.jacoco.reportPath', "${buildDir}/jacoco/testPlaystoreDebugUnitTest.exec"
        property 'sonar.jacoco.itReportPath', fileTree(dir: ${buildDir}, includes: ['**/*.ec'])
        ...
    }
}

Issue is sonarqube doesnt generate the coverage report while same path works for jacoco. Please help !