This is an automated email from the ASF dual-hosted git repository.

singhpk234 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new c3239b8622 Build: Print failed test summary after suite completes 
(#16537)
c3239b8622 is described below

commit c3239b8622e6a4a941d4e6f1d2e5d5d67230b4c4
Author: Yuya Ebihara <[email protected]>
AuthorDate: Thu Oct 15 13:11:02 2026 +0900

    Build: Print failed test summary after suite completes (#16537)
---
 build.gradle | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/build.gradle b/build.gradle
index df44af7e9e..53622de471 100644
--- a/build.gradle
+++ b/build.gradle
@@ -275,6 +275,27 @@ subprojects {
       exceptionFormat "full"
     }
 
+    def failedTests = []
+    addTestListener(new TestListener() {
+      void afterTest(TestDescriptor descriptor, TestResult result) {
+        if (result.resultType == TestResult.ResultType.FAILURE) {
+          failedTests << "${descriptor.className}.${descriptor.name}"
+        }
+      }
+      
+      void afterSuite(TestDescriptor descriptor, TestResult result) {
+        if (descriptor.parent == null && !failedTests.isEmpty()) {
+          println "\nFailures:"
+          failedTests.each { testName ->
+            println "  ${testName}"
+          }
+        }
+      }
+      
+      void beforeTest(TestDescriptor descriptor) {}
+      void beforeSuite(TestDescriptor descriptor) {}
+    })
+
     systemProperty 'project.version', project.version
   }
 

Reply via email to