RFR: 7904125: JUnit test discovery issues must result in jtreg test failure

Jaikiran Pai jpai at openjdk.org
Wed Jan 7 10:05:13 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.

Thank you Christian for the review.

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

PR Comment: https://git.openjdk.org/jtreg/pull/304#issuecomment-3718111858


More information about the jtreg-dev mailing list