Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 3.06 KB

release-notes-5.10.0-RC1.adoc

File metadata and controls

71 lines (54 loc) · 3.06 KB

5.10.0-RC1

Date of Release: July 6, 2023

Scope:

  • New @SelectMethod support in test @Suite classes.

  • Various enhancements for discovery selectors for classes and methods, including additional support for custom ClassLoader arrangements.

  • Improved @TempDir support for cleaning up files and directories on Windows.

  • Revised stack trace pruning support.

  • Various documentation improvements.

  • Minor changes and enhancements since 5.10 M1.

For a complete list of all closed issues and pull requests for this release, consult the 5.10.0-RC1 milestone page in the JUnit repository on GitHub.

JUnit Platform

Deprecations and Breaking Changes

  • The getMethodParameterTypes() methods in MethodSelector and NestedMethodSelector have been deprecated and replaced by getParameterTypeNames() for greater clarity.

  • Methods in DiscoverySelectors that accept a ClassLoader now declare the ClassLoader as the first parameter. This is only a breaking change for code that relies on the new methods introduced in JUnit Platform 1.10 M1.

New Features and Improvements

  • New @SelectMethod selector support in the @Suite test engine.

  • Classes may now be selected by fully-qualified name via the names attribute in @SelectClasses.

  • New selectMethod() and selectNestedMethod() variants in DiscoverySelectors that accept a Class<?>…​ argument of parameter types as a type-safe alternative to providing the names of parameter types as a comma-delimited string.

  • Stack trace pruning has been revised and now only removes calls from the org.junit, jdk.internal.reflect, and sun.reflect packages. Please refer to the User Guide for details.

  • New getAncestors() method in TestDescriptor.

JUnit Jupiter

New Features and Improvements

  • @TempDir can now be used as a meta-annotation in order to create custom composed annotations. See the @JimfsTempDir example in the User Guide for details.

  • @TempDir now successfully cleans up files and directories on Windows that are set to read-only.

  • New reason attribute in @Execution which can be used to document the reason for using the selected execution mode.

  • The User Guide now includes an example implementation of the RandomNumberExtension in order to improve the documentation for extension registration via @ExtendWith on fields.

  • Lifecycle and thread-safety semantics are now documented for the TempDirFactory SPI.

  • The scope of applicability for TestWatcher implementations is now more extensively documented in the User Guide and Javadoc.

  • JAVA_22 has been added to the JRE enum for use with JRE-based execution conditions.

JUnit Vintage

No changes.