blob: 8a54b4f541d9ca92678f248d5aafac0502d2092f [file] [log] [blame] [edit]
[[release-notes-5.8.1]]
== 5.8.1
*Date of Release:* September 22, 2021
*Scope:*
* Support for _text blocks_ in `@CsvSource`
* Java 18 support in the `JRE` enum
* Access to the `ExecutionMode` in the `ExtensionContext`
* Minor bug fixes and enhancements since 5.8.0
For a complete list of all _closed_ issues and pull requests for this release, consult the
link:{junit5-repo}+/milestone/59?closed=1+[5.8.1] milestone page in the JUnit repository on
GitHub.
[[release-notes-5.8.1-junit-platform]]
=== JUnit Platform
==== Deprecations and Breaking Changes
* `@UseTechnicalNames` has been deprecated in favor of the new `@Suite` support which does
not require the use of technical names. See the warning in
<<../user-guide/index.adoc#running-tests-junit-platform-runner, Using JUnit 4 to run the
JUnit Platform>> for details.
==== New Features and Improvements
* `ReflectionSupport.findNestedClasses(..)` is now thread-safe with regard to cycle
detection.
[[release-notes-5.8.1-junit-jupiter]]
=== JUnit Jupiter
==== Bug Fixes
* `assertLinesMatch()` in `Assertions` no longer fails with a `NoSuchElementException` if
a limited fast-forward followed by at least one more expected line exceeds the remaining
actual lines.
* `assertLinesMatch()` in `Assertions` now handles fast-forwards with leading and trailing
spaces correctly and no longer throws an `IndexOutOfBoundsException`.
==== New Features and Improvements
* `JAVA_18` has been added to the `JRE` enum for use with JRE-based execution conditions.
* CSV content in `@CsvSource` can now be supplied as a _text block_ instead of an array of
strings. See the
<<../user-guide/index.adoc#writing-tests-parameterized-tests-sources-CsvSource, User
Guide>> for details and an example.
* The `ExecutionMode` for the current test or container is now accessible via the
`ExtensionContext`.
[[release-notes-5.8.1-junit-vintage]]
=== JUnit Vintage
==== Bug Fixes
* Relaxed version constraint in published Gradle Module Metadata to allow downgrading the
`junit:junit` dependency from 4.13.2.