aboutsummaryrefslogtreecommitdiffstats
path: root/poi-excelant/src
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-11-13 19:22:28 +0000
committerDominik Stadler <centic@apache.org>2022-11-13 19:22:28 +0000
commit363dafb3361fbf4b12140c1f67b7058246076d66 (patch)
tree8aa8dfe3410a289810480549250a5a8258771af7 /poi-excelant/src
parent00092c21ddd167accdfe5505b6198a89d6db78ba (diff)
downloadpoi-363dafb3361fbf4b12140c1f67b7058246076d66.tar.gz
poi-363dafb3361fbf4b12140c1f67b7058246076d66.zip
Update JUnit5Progress to print out information on internal failures
Otherwise sometimes tests are failing, but we don't see why git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-excelant/src')
-rw-r--r--poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java b/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
index 8e87ef064f..a4170b6154 100644
--- a/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
+++ b/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
@@ -76,17 +76,17 @@ public class Junit5Progress implements TestExecutionListener {
String summary = String.format("Tests run: %d, Failures: %d, Aborted: %d, Skipped: %d, Time elapsed: %f sec", totalTestsInClass,
this.numFailedInTestSet.get(), this.numAbortedInTestSet.get(), this.numSkippedInTestSet.get(), numSeconds);
println(summary);
- } else if (testIdentifier.isTest()) {
+ } else {
switch (testExecutionResult.getStatus()) {
case SUCCESSFUL:
this.numSucceededInTestSet.incrementAndGet();
break;
case ABORTED:
- println(" Aborted: " + testIdentifier.getDisplayName());
+ println(" Aborted: " + testIdentifier.getDisplayName() + ": " + testExecutionResult.getThrowable().orElse(null));
this.numAbortedInTestSet.incrementAndGet();
break;
case FAILED:
- println(" Failed: " + testIdentifier.getDisplayName());
+ println(" Failed: " + testIdentifier.getDisplayName() + ": " + testExecutionResult.getThrowable().orElse(null));
this.numFailedInTestSet.incrementAndGet();
break;
}