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

Christian Stein cstein at openjdk.org
Mon Nov 3 16:29:36 UTC 2025


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

>> 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.

Good!

> 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.

Better!

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

PR Review Comment: https://git.openjdk.org/jtreg/pull/300#discussion_r2487104534
PR Review Comment: https://git.openjdk.org/jtreg/pull/300#discussion_r2487104971


More information about the jtreg-dev mailing list