Add a note on coverage

This commit is contained in:
Bradlee Speice 2014-12-01 23:56:55 -05:00
parent d79f898bce
commit c4dc251ead

View File

@ -55,9 +55,14 @@ jacocoTestReport {
Additionally, to properly exclude, we need to run that code outside the doFirst block. Additionally, to properly exclude, we need to run that code outside the doFirst block.
No clue why this is, but please don't change this without extensive testing. No clue why this is, but please don't change this without extensive testing.
Finally, because we actually exclude these files from the output, they are removed
from the actual classpath, meaning no test classes can reference any of the below.
Otherwise, I'd remove com/toddddavies/** as well
*/ */
def jacocoExcludes = [ def jacocoExcludes = [
"android/**/*" "android/**/*",
"com/cmwmobile/**"
] ]
firstVariant.javaCompile.exclude(jacocoExcludes).outputs.files firstVariant.javaCompile.exclude(jacocoExcludes).outputs.files