ignoring stub modules from coverage report
This commit is contained in:
parent
c6abba5638
commit
e0a7830b5d
|
@ -89,7 +89,7 @@ def collectProjects(predicate) {
|
||||||
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 { true }
|
def projects = collectProjects { !it.name.contains("stub") }
|
||||||
dependsOn { ["app:assembleDebug"] + projects*.test }
|
dependsOn { ["app:assembleDebug"] + projects*.test }
|
||||||
initializeReport(it, projects, excludes)
|
initializeReport(it, projects, excludes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue