This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new e32dea2b7e minor refactor: display test suite summary (use quiet "-q"
to disable)
e32dea2b7e is described below
commit e32dea2b7e0e35e4e792e6e29a97cacada886079
Author: Paul King <[email protected]>
AuthorDate: Wed Apr 15 07:37:19 2026 +1000
minor refactor: display test suite summary (use quiet "-q" to disable)
---
build-logic/src/main/groovy/org.apache.groovy-tested.gradle | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
index 5b50ea5b8c..99d6d429bf 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
@@ -103,6 +103,17 @@ tasks.withType(Test).configureEach {
delete(files(".").filter { it.name.endsWith '.class' })
}
}
+
+ afterSuite { desc, result ->
+ if (!desc.parent && result.resultType ==
TestResult.ResultType.SUCCESS) {
+ def green = '\u001B[32m'
+ def yellow = '\u001B[33m'
+ def reset = '\u001B[0m'
+ logger.lifecycle "${desc.name}:
${green}${result.successfulTestCount} passed${reset}, " +
+ "${yellow}${result.skippedTestCount} skipped${reset} " +
+ "(${result.testCount} tests)"
+ }
+ }
}
tasks.withType(GroovyCompile).configureEach {