From c5e7fe8f410b7e305d0e9cf1755e0af4737f492b Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 6 Dec 2014 22:34:18 -0500 Subject: [PATCH] Register the source files with Jacoco Also remove a data class from the report --- app-test/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app-test/build.gradle b/app-test/build.gradle index e0b879c..b7c587e 100644 --- a/app-test/build.gradle +++ b/app-test/build.gradle @@ -35,7 +35,8 @@ def jacocoExcludes = [ 'com/todddavies/**', 'com/cmwmobile/**', 'org/bspeice/minimalbible/R*', - '**/*$$*' + '**/BookAdapter$ChapterInfo*', + '**/*$$*' // Dagger/Butterknife ] dependencies { @@ -71,7 +72,9 @@ jacocoTestReport { } // And finally tell Jacoco to only include said files in the report + // For whatever reason, firstVariant.javaCompile.exclude(jacocoExcludes) doesn't work... classDirectories = outputTree + sourceDirectories = files(androidModule.android.sourceSets.main.java.srcDirs) } reports {