Skip to content

Commit

Permalink
Suppress output when crosstesting
Browse files Browse the repository at this point in the history
  • Loading branch information
espertus committed Jan 26, 2024
1 parent a693c06 commit 6109210
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/spertus/jacquard/crosstester/CrossTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,20 @@ public void executionFinished(
}
});

// Suppress output.
PrintStream oldOut = System.out;
PrintStream oldErr = System.err;
System.setOut(new PrintStream(OutputStream.nullOutputStream()));
System.setErr(new PrintStream(OutputStream.nullOutputStream()));

// Run tests.
launcher.execute(request);

// Reenable output.
System.setOut(oldOut);
System.setErr(oldErr);

// Generate and return results.
return generateResults(testResults);
}

Expand Down

0 comments on commit 6109210

Please sign in to comment.