RFR: 7904125: JUnit test discovery issues must result in jtreg test failure
Christian Stein
cstein at openjdk.org
Wed Jan 7 09:12:42 UTC 2026
On Mon, 5 Jan 2026 14:22:01 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which proposes to fail a jtreg test if there were any junit test engine discovery errors? This addresses https://bugs.openjdk.org/browse/CODETOOLS-7904125.
>
> This change should prevent issues like https://bugs.openjdk.org/browse/JDK-8374434 where the warning is being logged by junit but they go unnoticed because there's no test failure raised for those issues.
>
> A new self test has been introduced to reproduce the issue and verify the change.
Looks good.
-------------
Marked as reviewed by cstein (Reviewer).
PR Review: https://git.openjdk.org/jtreg/pull/304#pullrequestreview-3633952835
More information about the jtreg-dev
mailing list