Thanks Xavier.
JFYI,
My objective is to setup build-job at jenkins to build, test, generate test reports and code-coverage reports through gradle build and then sync the generated reports/data with SONARQUBE.
I am running tests on emulator (target: android-19).
-- I have setup build job at jenkins-CI server.
-- I have also setup SONARQUBE with Android plugin.
-- I have also enabled test coverage in build files
-- Build files is configured with all required sonar properties.
sonarRunner {
sonarProperties {
//...
property 'sonar.language', 'java'
property 'sonar.sources', 'src'
property 'sonar.binaries', 'build/intermediates/classes/debug/'
property 'sonar.junit.reportsPath', 'build/outputs/androidTest-results/connected/'
property 'sonar.java.codeCoveragePlugin', 'jacoco'
property 'sonar.jacoco.reportPath' , 'build/outputs/code-coverage/connected/'
property 'sonar.profile', 'Android Lint'
}
}
On running 'connectedCheck'
-- HTML formatted reports for both test results and code coverage get generated but to sync the reports-data with sonarQube I do require the location to generated 'jacoco.exe' (coverage data)
which I do not see at 'build/outputs/code-coverage/connected/', though I am able to see html reports.