Author: centic
Date: Sun Nov 13 19:22:28 2022
New Revision: 1905278
URL: http://svn.apache.org/viewvc?rev=1905278&view=rev
Log:
Update JUnit5Progress to print out information on internal failures
Otherwise sometimes tests are failing, but we don't see why
Modified:
poi/trunk/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
Modified: poi/trunk/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java?rev=1905278&r1=1905277&r2=1905278&view=diff
==============================================================================
--- poi/trunk/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java
(original)
+++ poi/trunk/poi-excelant/src/poi-ant-contrib/java/Junit5Progress.java Sun Nov
13 19:22:28 2022
@@ -76,17 +76,17 @@ public class Junit5Progress implements T
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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]