5
5
6
6
*Scope:*
7
7
8
- * New `@EnabledIf`/`@DisabledIf` for conditional execution based on method calls
9
- * New `MethodOrderer` named `DisplayName`
10
- * New `DisplayNameGenerator` named `Simple` that removes empty parentheses
11
- * `assertThrows` for Kotlin can now be used with suspending functions
12
- * `TestExecutionListener` deactivation via configuration parameter
8
+ * New `@EnabledIf`/`@DisabledIf` annotations for conditional execution based on method
9
+ calls
10
+ * New `MethodOrderer` named `DisplayName` that orders methods based on their display names
11
+ * New `DisplayNameGenerator` named `Simple` that removes parentheses for empty parameter
12
+ lists
13
+ * `assertThrows()` for Kotlin can now be used with suspending functions
14
+ * `TestExecutionListener` deactivation via a configuration parameter
13
15
* `EngineTestKit` now allows for testing post-discovery filtering and pruning
14
- * Interoperability improvements for the Vintage test engine with Spock
16
+ * Improved interoperability with Spock for the Vintage test engine
15
17
16
18
For a complete list of all _closed_ issues and pull requests for this release, consult the
17
19
link:{junit5-repo}+/milestone/44?closed=1+[5.7 M1] milestone page in the JUnit repository
@@ -39,16 +41,17 @@ on GitHub.
39
41
one to specify a comma-separated list of patterns for deactivating
40
42
`TestExecutionListener` implementations registered via the `ServiceLoader` mechanism.
41
43
* The `@Testable` annotation may now be applied _directly_ to fields.
42
- * Add `Node.DynamicTestExecutor#execute(TestDescriptor, EngineExecutionListener)` for
43
- engines that wish to pass a custom `EngineExecutionListener` and cancel or wait for the
44
- execution of a submitted test via the returned `Future`.
45
- * Add `EngineExecutionListener.NOOP` and change all declared methods to have empty default
44
+ * New `Node.DynamicTestExecutor#execute(TestDescriptor, EngineExecutionListener)` method
45
+ for engines that wish to provide a custom `EngineExecutionListener` and cancel or wait
46
+ for the execution of a submitted test via the returned `Future`.
47
+ * New `EngineExecutionListener.NOOP` `EngineExecutionListener` implementation.
48
+ * All declared methods in the `EngineExecutionListener` API now have empty `default`
46
49
implementations.
47
50
* The `EngineTestKit` now reuses the same test discovery and execution logic as the
48
- `Launcher`. Thus, it's now possible to test that an engine's behavior in the presence of
51
+ `Launcher`. Thus, it's now possible to test an engine's behavior in the presence of
49
52
post-discovery filters (e.g. tag filters) and with regard to pruning.
50
- * The TestKit now allows to match conditions with events loosely, i.e. an incomplete match
51
- with or without a fixed order.
53
+ * The `EngineTestKit` now supports matching conditions with events loosely, i.e. an
54
+ incomplete match with or without a fixed order.
52
55
53
56
54
57
[[release-notes-5.7.0-M1-junit-jupiter]]
@@ -62,25 +65,26 @@ on GitHub.
62
65
63
66
==== New Features and Improvements
64
67
65
- * New annotations `@EnabledIf` and `@DisabledIf` can be used to enable/ disable a test
66
- or container based on static condition methods.
68
+ * New `@EnabledIf` and `@DisabledIf` annotations can be used to enable or disable a test
69
+ or container based on condition methods.
67
70
* New `MethodOrderer` named `DisplayName` that sorts test methods alphanumerically based
68
- on their display names.
71
+ on their display names.
69
72
* New `DisplayNameGenerator` named `Simple` (based on `Standard`) that removes trailing
70
- parentheses for methods with no parameters.
71
- * `assertThrows` for Kotlin can now be used with suspending functions and other lambda
73
+ parentheses for methods with no parameters.
74
+ * `assertThrows() ` for Kotlin can now be used with suspending functions and other lambda
72
75
contexts that require inlining.
73
76
* The `JRE` enum now provides a static `currentVersion()` method that returns the enum
74
77
constant for the currently executing JRE, e.g. for use in custom execution conditions
75
78
and other extensions.
79
+ * The `name` attribute of `@ParameterizedTest` is now clearly documented to be a
80
+ `MessageFormat` pattern.
76
81
* Synthetic constructors are now ignored when instantiating a test class.
77
82
* The Javadoc for the `provideTestTemplateInvocationContexts()` method in
78
83
`TestTemplateInvocationContextProvider` has been aligned with the actual implementation.
79
84
Providers are now officially allowed to return an empty stream, and the error message
80
85
when all provided streams are empty is now more helpful.
81
- * The `name` attribute of `@ParameterizedTest` is now clearly documented to be a
82
- `MessageFormat` pattern.
83
- * New `getDisplayName()` method in `MethodDescriptor`.
86
+ * New `getDisplayName()` method in `MethodDescriptor` for use in `MethodOrderer`
87
+ implementations.
84
88
85
89
86
90
[[release-notes-5.7.0-M1-junit-vintage]]
0 commit comments