Skip to content

Commit 471b896

Browse files
authored
Fix includeNoLocationClasses. (#61)
1 parent 1cf057c commit 471b896

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/groovy/com/vanniktech/android/junit/jacoco/Generation.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ class Generation implements Plugin<Project> {
8484
toolVersion extension.jacocoVersion
8585
}
8686

87-
subProject.android.testOptions.unitTests {
88-
it.testTasks.each {
89-
it.jacoco.includeNoLocationClasses = extension.includeNoLocationClasses
90-
}
87+
subProject.android.testOptions.unitTests.all {
88+
it.jacoco.includeNoLocationClasses = extension.includeNoLocationClasses
9189
}
9290

9391
final def buildTypes = subProject.android.buildTypes.collect { type -> type.name }

0 commit comments

Comments
 (0)