Skip to content

Commit

Permalink
TestRunLogUtil: add stacktrace to stdout
Browse files Browse the repository at this point in the history
Otherwise it's hard to tell which test failed when/first if errors are
collected in other logfiles only.
  • Loading branch information
EcljpseB0T authored and jukzi committed Oct 11, 2024
1 parent 78c9a1c commit 545ac67
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ protected void starting(Description description) {
System.out.println(formatTestStartMessage(description.getMethodName()));
}

@Override
protected void failed(Throwable e, Description description) {
System.out.println(description.getMethodName() + " failed:");
e.printStackTrace(System.out);
}

@Override
protected void finished(Description description) {
System.out.println(formatTestFinishedMessage(description.getMethodName()));
Expand Down

0 comments on commit 545ac67

Please sign in to comment.