Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slarse committed Apr 7, 2024
1 parent 297540a commit 3673c19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/java/se/kth/spork/TestOutputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ public void executionStarted(TestIdentifier testIdentifier) {
}

@Override
public void executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) {
public void executionFinished(
TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) {
System.setOut(stdout);
System.setErr(stderr);
if (testExecutionResult.getStatus().equals(TestExecutionResult.Status.FAILED)) {
System.out.printf("### OUTPUT FROM %s (%s) ###", testIdentifier.getLegacyReportingName(), testIdentifier.getDisplayName());
System.out.printf(
"### OUTPUT FROM %s (%s) ###",
testIdentifier.getLegacyReportingName(), testIdentifier.getDisplayName());
System.out.println(capturedStdout.toString());
System.out.println(capturedStderr.toString());
}
Expand Down

0 comments on commit 3673c19

Please sign in to comment.