Remove unneeded code, retaining a comment for how to exclude certain projects

This commit is contained in:
Michael Kaye 2022-03-04 15:01:24 +00:00
parent 9fe04ac5b8
commit 662f72fde8

View file

@ -43,29 +43,12 @@ def collectProjects(predicate) {
return subprojects.findAll { it.buildFile.isFile() && predicate(it) } 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) { task allCodeCoverageReport(type: JacocoReport) {
outputs.upToDateWhen { false } outputs.upToDateWhen { false }
rootProject.apply plugin: 'jacoco' 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 } def projects = collectProjects { true }
dependsOn { projects*.test } dependsOn { projects*.test }
initializeReport(it, projects, excludes) initializeReport(it, projects, excludes)