-
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')
}