RFR: 7904046: Update jtreg to bundle JUnit 5.13.2

Christian Stein cstein at openjdk.org
Tue Jun 24 14:58:19 UTC 2025


Please review this change to update jtreg to bundle a newer version of JUnit, namely `5.13.2`.

In addition to "Numerous bug fixes and minor improvements" compared to older versions the `@ParameterizedClass` feature would be a major win for writing parameterized tests and the new validation feature that reports configuration error at test discovery time.

[JUnit 5.13 Scope](https://docs.junit.org/5.13.2/release-notes/#release-notes-5.13.0)

- Introduce @ClassTemplate and @ParameterizedClass support in JUnit Jupiter
- Access to ParameterInfo for JUnit Jupiter extensions
- New @SentenceFragment annotation for use with IndicativeSentences display name generator
- Add --redirect-stdout and --redirect-stderr options to ConsoleLauncher
- Introduce test discovery support in EngineTestKit
- Reporting of discovery issues for test engines
- Resource management for launcher sessions and execution requests
- GraalVM: removal of native-image.properties files from JARs

[JUnit 5.12 Scope](https://docs.junit.org/5.12.0/release-notes/index.html#release-notes-5.12.0)

- Output file attachments for tests and containers
- Improvements to the Open Test Reporting XML output
- Resource lock definition improvements
- Thread dumps on test timeouts
- Parameterized test validation improvements
- Filtering support for auto-registered extensions
- Kotlin contracts for assertions
- Configurable Jupiter extension context scope
- Enhancements to the ConsoleLauncher
- Better support for GraalVM native image usage
- Improved discovery support for file-based test engines
- Customizable classpath scanning
- Parallel execution support in JUnit Vintage engine

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

Commit messages:
 - 7904046: Update jtreg to bundle JUnit 5.13.2

Changes: https://git.openjdk.org/jtreg/pull/269/files
  Webrev: https://webrevs.openjdk.org/?repo=jtreg&pr=269&range=00
  Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904046
  Stats: 9 lines in 2 files changed: 6 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jtreg/pull/269.diff
  Fetch: git fetch https://git.openjdk.org/jtreg.git pull/269/head:pull/269

PR: https://git.openjdk.org/jtreg/pull/269


More information about the jtreg-dev mailing list