Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ allprojects {
task combineReports(type: TestReport) {
description 'Combines the test reports.'
destinationDir = file "${rootProject.buildDir}/reports/combined"
// Collect all Test tasks in subprojects
def allTests = subprojects.collect { it.tasks.withType(Test) }.flatten()

// Explicitly add geode-old-versions:test if it’s being missed
allTests += tasks.getByPath(":geode-old-versions:test")

// Tell TestReport to use their results
reportOn allTests

// Explicitly depend on them so results exist before combining
dependsOn allTests

doLast {
println "All test reports at ${rootProject.buildDir}/reports/combined"
Expand Down Expand Up @@ -206,8 +217,7 @@ if (project.hasProperty('askpass')) {
}

gradle.taskGraph.whenReady({ graph ->
def allTestTasks = rootProject.subprojects.collect { it.tasks.withType(Test) }.flatten()
def cr = tasks.getByName('combineReports') as TestReport
cr.reportOn allTestTasks
cr.dependsOn allTestTasks
tasks.getByName('combineReports').reportOn rootProject.subprojects.collect {
it.tasks.withType(Test)
}.flatten()
})
Loading