Register the source files with Jacoco

Also remove a data class from the report
This commit is contained in:
Bradlee Speice 2014-12-06 22:34:18 -05:00
parent 6e3f60f0ec
commit c5e7fe8f41

View File

@ -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 {