RFR: 7903324: Improve per-class reporting of JUnit tests, in .jtr file
Christian Stein
cstein at openjdk.org
Thu Oct 27 18:22:15 UTC 2022
On Tue, 27 Sep 2022 13:11:46 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 205:
>
>> 203: // additionally print stacktrace for a non-successful test
>> 204: if (result.getStatus() != TestExecutionResult.Status.SUCCESSFUL) {
>> 205: result.getThrowable().ifPresent(printer::println);
>
> Print complete stacktrace of the cause? Prune "Java system" frames?
All stacktraces with assertion error messages are also printed using the summary generating listener. Keep the duplication of information?
-------------
PR: https://git.openjdk.org/jtreg/pull/127
More information about the jtreg-dev
mailing list