RFR: 7903324: Improve per-class reporting of JUnit tests, in .jtr file

Jonathan Gibbons jjg at openjdk.org
Thu Oct 27 18:22:11 UTC 2022


On Mon, 26 Sep 2022 10:07:18 GMT, Christian Stein <cstein at openjdk.org> wrote:

> Improve per-class reporting of JUnit tests by using a custom `TestExecutionListener` in `JUnitRunner`.

src/share/classes/com/sun/javatest/regtest/agent/JUnitRunner.java line 182:

> 180:         @Override
> 181:         public void executionFinished(TestIdentifier identifier, TestExecutionResult result) {
> 182:             System.out.println(identifier.getDisplayName() + ": " + result.getStatus());

Which `System` stream is better? `out`, or `err` ?

-------------

PR: https://git.openjdk.org/jtreg/pull/127


More information about the jtreg-dev mailing list