skipping noop modules from the coverage report
This commit is contained in:
parent
477ac52d16
commit
e1b1e77b83
|
@ -67,30 +67,10 @@ 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'
|
||||||
def projects = collectProjects { !it.name.contains("stub") }
|
def projects = collectProjects { !it.name.contains("stub") && !it.name.contains("-noop") }
|
||||||
dependsOn { ["app:assembleDebug"] + projects*.test }
|
dependsOn { ["app:assembleDebug"] + projects*.test }
|
||||||
initializeReport(it, projects, excludes)
|
initializeReport(it, projects, excludes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue