mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-15 00:32:06 +01:00
[sinttest] Perform early exit in JulTestRunResultProcessor.process()
This commit is contained in:
parent
d67262a5e0
commit
18647c24ca
1 changed files with 19 additions and 18 deletions
|
@ -150,7 +150,11 @@ public class SmackIntegrationTestFramework {
|
|||
LOGGER.info("SmackIntegrationTestFramework[" + testRunResult.testRunId + ']' + " finished: "
|
||||
+ successfulTests + '/' + availableTests + " [" + failedTests + " failed]");
|
||||
|
||||
if (failedTests > 0) {
|
||||
if (failedTests == 0) {
|
||||
LOGGER.info("All possible Smack Integration Tests completed successfully. \\o/");
|
||||
return;
|
||||
}
|
||||
|
||||
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());
|
||||
|
@ -169,9 +173,6 @@ public class SmackIntegrationTestFramework {
|
|||
if (!bySpecification.isEmpty()) {
|
||||
LOGGER.log(Level.SEVERE, "The failed tests correspond to the following specifications:" + System.lineSeparator() + String.join(System.lineSeparator(), bySpecification));
|
||||
}
|
||||
} else {
|
||||
LOGGER.info("All possible Smack Integration Tests completed successfully. \\o/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue