lucene/gradle/testing/per-project-summary.gradle

21 lines
541 B
Groovy
Raw Normal View History

// Per-project test summary.
allprojects {
tasks.withType(Test) { task ->
afterSuite { desc, result ->
if (!desc.parent) {
if (result.testCount > 0) {
def components = [
"test(s)" : result.testCount,
"failure(s)": result.failedTestCount,
"skipped" : result.skippedTestCount
].findAll { k, v -> v > 0 }.collect { k, v -> "$v $k" }.join(", ")
logger.lifecycle("${task.path} (${result.resultType}): ${components}")
}
}
}
}
}