From e1b1e77b833f1bfa11525f7dee5e9948f7231ede Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 31 Aug 2022 18:14:47 +0100 Subject: [PATCH] skipping noop modules from the coverage report --- tools/coverage.gradle | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/tools/coverage.gradle b/tools/coverage.gradle index 15d22bd..009e835 100644 --- a/tools/coverage.gradle +++ b/tools/coverage.gradle @@ -67,30 +67,10 @@ def collectProjects(predicate) { return subprojects.findAll { it.buildFile.isFile() && predicate(it) } } -//task unitCodeCoverageReport(type: JacocoReport) { -// outputs.upToDateWhen { false } -// rootProject.apply plugin: 'jacoco' -// def excludedProjects = [ -// 'olm-stub', -// 'test-harness' -// ] -// def projects = collectProjects { !excludedProjects.contains(it.name) } -// dependsOn { ["app:assembleDebug"] + projects*.test } -// initializeReport(it, projects, excludes) -//} -// -//task harnessCodeCoverageReport(type: JacocoReport) { -// outputs.upToDateWhen { false } -// rootProject.apply plugin: 'jacoco' -// def projects = collectProjects { true } -// dependsOn { ["app:assembleDebug", project(":test-harness").test] } -// initializeReport(it, projects, excludes) -//} - task allCodeCoverageReport(type: JacocoReport) { outputs.upToDateWhen { false } rootProject.apply plugin: 'jacoco' - def projects = collectProjects { !it.name.contains("stub") } + def projects = collectProjects { !it.name.contains("stub") && !it.name.contains("-noop") } dependsOn { ["app:assembleDebug"] + projects*.test } initializeReport(it, projects, excludes) }