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

Alan Bateman alanb at openjdk.org
Thu Oct 27 18:22:06 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 136:

> 134:                 Launcher launcher = session.getLauncher();
> 135:                 launcher.registerTestExecutionListeners(summaryGeneratingListener);
> 136:                 launcher.registerTestExecutionListeners(new PrintingListener(System.err));

Is System.err correct? If my test prints messages to System.out them how will I know which test they came from?

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

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


More information about the jtreg-dev mailing list