From e2a196fa52222a6816dd850ee8380335a90f7850 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 31 May 2020 21:08:14 +0200 Subject: [PATCH] [sinttest] Improve status output --- .../smack/inttest/SmackIntegrationTestFramework.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 14fedd388..e8d7758f8 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 @@ -454,10 +454,12 @@ public class SmackIntegrationTestFramework { } sb.append('\n'); } - sb.append("Available tests: ").append(numberOfAvailableTests) - .append("(#-classes: ").append(testRunResult.disabledTestClasses.size()) - .append(", #-tests: ").append(testRunResult.disabledTests.size()) - .append(")\n"); + sb.append("Available tests: ").append(numberOfAvailableTests); + if (!testRunResult.disabledTestClasses.isEmpty() || !testRunResult.disabledTests.isEmpty()) { + sb.append(" (Disabled ").append(testRunResult.disabledTestClasses.size()).append(" classes") + .append(" and ").append(testRunResult.disabledTests.size()).append(" tests"); + } + sb.append('\n'); LOGGER.info(sb.toString()); for (PreparedTest test : tests) {