This document contains the change log for all JUnit 5 releases since 5.4 GA.
Please refer to the User Guide for comprehensive reference documentation for programmers writing tests, extension authors, and engine authors as well as build tool and IDE vendors.
Date of Release: ❓
For a complete list of all closed issues and pull requests for this release, consult the 5.5 M2 milestone page in the JUnit repository on GitHub.
Execution of dynamic tests registered via a
@TestFactorymethod no longer results in an
OutOfMemoryErrorif the executables in the dynamic tests retain references to objects consuming large amounts of memory. Technically speaking, JUnit Jupiter no longer retains references to instances of
DynamicTestafter they have been executed.
New overloaded variants of
Assertions.assertLinesMatch(…)that accept a
Supplier<String>for a custom failure message.
Failure messages for
Assertions.assertLinesMatch(…)now emit each expected and actual line in a dedicated line.
MethodOrderer.Randomnow generates a default random seed only once and prints it to the log in order to allow reproducible builds.
Methods ordered with
MethodOrderer.Randomnow execute using the
SAME_THREADconcurrency mode instead of the
CONCURRENTmode when no custom seed is provided.
All methods in the
TestWatcherAPI are now interface
defaultmethods with empty implementations.
InvocationInterceptorextension API (see User Guide for details)
Date of Release: March 19, 2019
Scope: Configurable test discovery implementation
For a complete list of all closed issues and pull requests for this release, consult the 5.5 M1 milestone page in the JUnit repository on GitHub.
Configurable test discovery implementation that can be reused by different test engines (see Javadoc of the
Date of Release: April 7, 2019
Scope: Bug fixes since 5.4.1
For a complete list of all closed issues and pull requests for this release, consult the 5.4.2 milestone page in the JUnit repository on GitHub.
Date of Release: March 17, 2019
Scope: Bug fixes since 5.4.0
For a complete list of all closed issues and pull requests for this release, consult the 5.4.1 milestone page in the JUnit repository on GitHub.
Date of Release: February 7, 2019
junit-jupiterdependency-aggregating artifact for simplified dependency management in build tools
XML report generating listener
Test Kit for testing engines and extensions
nulland empty argument sources for
@TempDirsupport for temporary directories
Custom display name generator API
Support for ordering test methods
Support for ordering extensions registered via
API for accessing outer test instances in
Improved diagnostics and error reporting
Improved documentation and user experience in the User Guide
Discontinuation of the
Various minor improvements and bug fixes
For complete details consult the 5.4.0 Release Notes online.