From c4dc251eadb946adae4721b1503f6944b0d0aac3 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 1 Dec 2014 23:56:55 -0500 Subject: [PATCH] Add a note on coverage --- app-test/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app-test/build.gradle b/app-test/build.gradle index 8bdbb9c..addd9dc 100644 --- a/app-test/build.gradle +++ b/app-test/build.gradle @@ -55,9 +55,14 @@ jacocoTestReport { 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. + + 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 = [ - "android/**/*" + "android/**/*", + "com/cmwmobile/**" ] firstVariant.javaCompile.exclude(jacocoExcludes).outputs.files