ignoring stub modules from coverage report

This commit is contained in:
Adam Brown 2022-03-13 14:15:24 +00:00
parent c6abba5638
commit e0a7830b5d
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def collectProjects(predicate) {
task allCodeCoverageReport(type: JacocoReport) {
outputs.upToDateWhen { false }
rootProject.apply plugin: 'jacoco'
def projects = collectProjects { true }
def projects = collectProjects { !it.name.contains("stub") }
dependsOn { ["app:assembleDebug"] + projects*.test }
initializeReport(it, projects, excludes)
}