Skip to content

Commit

Permalink
fix jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
yigit committed Mar 4, 2017
1 parent 024acd0 commit 91142c4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions jobqueue/build.gradle
Expand Up @@ -84,6 +84,9 @@ android {
unitTests.all {
// All the usual Gradle options.
jvmArgs '-Xmx2000m', '-XX:+HeapDumpOnOutOfMemoryError', "-XX:HeapDumpPath=${System.env.CIRCLE_ARTIFACTS == null ? "." : System.env.CIRCLE_ARTIFACTS}/oom.hprof"
jacoco {
includeNoLocationClasses = true
}
}
}

Expand Down Expand Up @@ -232,16 +235,20 @@ task jacocoTestReport(type:JacocoReport, dependsOn: "testDebugUnitTest") {
'**/R$*.class',
'**/BuildConfig.*',
'**/Manifest*.*',
'com/google/**']
'android/**/*.*',
'com/google/**']
)

additionalSourceDirs = files(android.sourceSets.main.getJava().getSrcDirs())
sourceDirectories = files(android.sourceSets.main.getJava().getSrcDirs())
executionData = files("$buildDir/jacoco/testDebugUnitTest.exec")
executionData = fileTree(dir: "$buildDir", includes: [
"jacoco/testDebugUnitTest.exec",
"outputs/code-coverage/connected/*coverage.ec"
])

reports {
xml.enabled = true
html.enabled = true
}

dependsOn "createDebugCoverageReport"
}

0 comments on commit 91142c4

Please sign in to comment.