From e0a7830b5df32ec242421be862631dde137776b6 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sun, 13 Mar 2022 14:15:24 +0000 Subject: [PATCH] ignoring stub modules from coverage report --- tools/coverage.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/coverage.gradle b/tools/coverage.gradle index af65bfb..f3d0891 100644 --- a/tools/coverage.gradle +++ b/tools/coverage.gradle @@ -89,7 +89,7 @@ def collectProjects(predicate) { task allCodeCoverageReport(type: JacocoReport) { outputs.upToDateWhen { false } rootProject.apply plugin: 'jacoco' - def projects = collectProjects { true } + def projects = collectProjects { !it.name.contains("stub") } dependsOn { ["app:assembleDebug"] + projects*.test } initializeReport(it, projects, excludes) }