From 1eb5649123307b498ff870deca48f4dda55aefef Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 17 Oct 2024 22:04:14 +0200 Subject: [PATCH] [sinttest] Provide brief summary of failed tests --- .../smack/inttest/SmackIntegrationTestFramework.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java index 3fb4edaae..a4ac93a9d 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java @@ -151,7 +151,10 @@ public class SmackIntegrationTestFramework { + successfulTests + '/' + availableTests + " [" + failedTests + " failed]"); if (failedTests > 0) { - LOGGER.warning("💀 The following " + failedTests + " tests failed! 💀"); + StringBuilder sb = new StringBuilder("💀 The following " + failedTests + " tests failed! 💀\n -"); + StringUtils.appendTo(testRunResult.failedIntegrationTests, "\n- ", sb, t -> sb.append(t.concreteTest)); + LOGGER.warning(sb.toString()); + final SortedSet bySpecification = new TreeSet<>(); for (FailedTest failedTest : testRunResult.failedIntegrationTests) { final Throwable cause = failedTest.failureReason;