mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
00092c21dd
commit
363dafb336
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue