From 662f72fde807b5be006cd00c9a0643448d03267c Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Fri, 4 Mar 2022 15:01:24 +0000 Subject: [PATCH] Remove unneeded code, retaining a comment for how to exclude certain projects --- coverage.gradle | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/coverage.gradle b/coverage.gradle index 7cc87baad9..545b93f93b 100644 --- a/coverage.gradle +++ b/coverage.gradle @@ -43,29 +43,12 @@ 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' + // to limit projects in a specific report, add + // def excludedProjects = [ ... ] + // def projects = collectProjects { !excludedProjects.contains(it.name) } def projects = collectProjects { true } dependsOn { projects*.test } initializeReport(it, projects, excludes)