RFR: 7904110: IDEA plugin: Update plugin for new message format [v2]

Jorn Vernee jvernee at openjdk.org
Mon Nov 3 15:16:53 UTC 2025


On Mon, 3 Nov 2025 15:13:49 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> The JUnit output was updated to include a timestamp in https://github.com/openjdk/jtreg/commit/470718a0637fbfd9a883de66e7955a4c26e05760
>> 
>> This patch updates the parser in the idea plugin to be able to handle the timestamps.
>
> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use regex + fix parsing of SKIPPED tests

plugins/idea/src/main/java/com/oracle/plugin/jtreg/runtime/JTRegTestListener.java line 252:

> 250: 
> 251:             private record Iteration(int num, String name) {
> 252:                 private static final Pattern PATTERN = Pattern.compile("\\[(?<num>\\d+)] (?<name>.*)");

The `'` characters here are now included in the `JUNIT_TEST_START` pattern.

plugins/idea/src/main/java/com/oracle/plugin/jtreg/runtime/JTRegTestListener.java line 312:

> 310:                     String[] lineParts = line.split(" ");
> 311:                     String duration = lineParts[lineParts.length -1]; // e.g. '[64ms]'
> 312:                     duration = duration.substring(1, duration.length() - 3); // drop '[' and 'ms]'

This parsing is now also handled by the regex.

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

PR Review Comment: https://git.openjdk.org/jtreg/pull/300#discussion_r2486828742
PR Review Comment: https://git.openjdk.org/jtreg/pull/300#discussion_r2486832899


More information about the jtreg-dev mailing list