-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
What went wrong:
Execution failed for task ':CoreServices:testCoverage'.
> Unable to read execution data file C:\p4\nemo\ce\sw\4.0\team\services\CoreServices\build\jacoco\testDebugUnitTest.exec
Code base:
task testCoverage(type: JacocoReport) {
reports
def mainSrc = "${project.projectDir}/src"
sourceDirectories = files([mainSrc])
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "${project.buildDir.getPath()}/intermediates/classes/debug", excludes: fileFilter)
classDirectories = files([debugTree])
// executionData = files("${project.buildDir.getPath()}/jacoco/testDebugUnitTest.exec")
executionData = fileTree(dir: project.projectDir, includes: ['**/*.exec'])
testCoverage.dependsOn('testDebugUnitTest')
}
Team any suggestion on this we have to use the 1.0.19 version plugin in Jenkins and this plug in supports only jacococ version 0.7.4.
Ans using 0.7.4 we are getting the following excception.
Unable to read execution data file C:\p4\nemo\ce\sw\4.0\team\services\CoreServices\build\jacoco\testDebugUnitTest.exec