mirror of https://github.com/apache/lucene.git
21 lines
561 B
Groovy
21 lines
561 B
Groovy
|
|
// 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}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|