1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 12:08:00 +01:00

[sinttest] Provide brief summary of failed tests

This commit is contained in:
Florian Schmaus 2024-10-17 22:04:14 +02:00
parent 0191ed7174
commit 1eb5649123

View file

@ -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<String> bySpecification = new TreeSet<>();
for (FailedTest failedTest : testRunResult.failedIntegrationTests) {
final Throwable cause = failedTest.failureReason;