Skip to content

Commit f0ae029

Browse files
committed
Complete JUnit Platform release notes for 5.0.0-M1 in the User Guide
Issue: #311
1 parent 52802a8 commit f0ae029

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

documentation/src/docs/asciidoc/release-notes-5.0.0-M1.adoc

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -71,52 +71,54 @@ Platform, Jupiter, and Vintage, consult the dedicated subsections.
7171
* The `junit-platform-console` artifact no longer defines transitive dependencies on
7272
`junit-platform-runner`, `junit-jupiter-engine`, or `junit-vintage-engine`.
7373
* The `JUnit5` Runner has been renamed to `JUnitPlatform`.
74-
* `@Packages` has been renamed to `@SelectPackages`.
75-
* `@Classes` has been renamed to `@SelectClasses`.
76-
* `@UniqueIds` has been removed.
74+
** `@Packages` has been renamed to `@SelectPackages`.
75+
** `@Classes` has been renamed to `@SelectClasses`.
76+
** `@UniqueIds` has been removed.
7777
* The Gradle plugin for the JUnit Platform has been completely overhauled.
7878
** The JUnit Platform Gradle plugin now requires Gradle 2.5 or higher.
7979
** The `junit5Test` Gradle task has been renamed to `junitPlatformTest`.
8080
** The `junit5` Gradle plugin configuration has been renamed to `junitPlatform`.
8181
*** `runJunit4` has been replaced by `enableStandardTestTask`.
8282
*** `version` has been replaced by `platformVersion`.
8383
** See <<running-tests-build-gradle>> for further details.
84+
* XML test report generation has been overhauled.
85+
** XML reports now contain newlines.
86+
** Attributes specific to the JUnit Platform that do not align with standard attributes
87+
in the de facto standard XML schema are now contained in `CDATA` blocks within the
88+
`<system-out>` element.
89+
** XML reports now use real method names and fully qualified class names instead of
90+
display names.
8491
* Unique ID in `TestIdentifier` is now a `String`.
8592
* `TestSource` is now an interface with a dedicated hierarchy consisting of
8693
`CompositeTestSource`, `JavaSource`, `JavaPackageSource`, `JavaClassSource`,
8794
`JavaMethodSource`, `UriSource`, `FileSystemSource`, `DirectorySource`, and
8895
`FileSource`.
89-
* `Filter#filter()` has been renamed to `Filter#apply()`.
96+
* All `DiscoverySelector` factory methods have been moved to a new `DiscoverySelectors`
97+
class that serves as a centralized collection of all _select_ methods.
98+
* `Filter.filter()` has been renamed to `Filter.apply()`.
9099
* `TestTag.of()` has been renamed to `TestTag.create()`.
91100
* `TestDiscoveryRequest` has been renamed to `LauncherDiscoveryRequest`.
92101
* `TestDiscoveryRequestBuilder` has been renamed to `LauncherDiscoveryRequestBuilder`.
93102
* `LauncherDiscoveryRequest` is now immutable.
94-
* `TestDescriptor#allDescendants()` has been renamed to `TestDescriptor#getAllDescendants()`.
103+
* `TestDescriptor.allDescendants()` has been renamed to `TestDescriptor.getAllDescendants()`.
95104
* `TestEngine#discover(EngineDiscoveryRequest)` has been replaced by
96105
`TestEngine#discover(EngineDiscoveryRequest, UniqueId)`.
97106
* Introduced `ConfigurationParameters` which the `Launcher` supplies to engines via the
98107
`EngineDiscoveryRequest` and `ExecutionRequest`
99108
* The `Container` and `Leaf` abstractions have been removed from the `HierarchicalTestEngine`.
100-
101-
////
102-
* Added require-engine filter to console runner
103-
* Added requireEngine property to gradle plugin
104-
* Added requiredEngine as input property to gradle plugin
105-
* Rename includeEngineId() to requireEngineId()
106-
* Support required & excluded engines in ConsoleRunner
107-
* Support required & excluded engines in the JUnit5 Runner
108-
* Use consistent include/exclude terminology for tags and engines
109-
* Rename requireTag[s] to includeTag[s] in Gradle plugin
110-
111-
* Introduce DiscoverSelectors collection of select methods
112-
113-
* Support dynamic test containers in JUnit Platform Runner
114-
115-
* Use CDATA and newlines in XML report
116-
* Write non-standard platform attributes to STDOUT in XML report
117-
* Use real names and class names in generated XML report
118-
* Set encoding to UTF-8 in generated XML report
119-
////
109+
* Test engines are now permitted to be completely dynamic in nature. In other words, a
110+
`TestEngine` is no longer required to create `TestDescriptor` entries during the
111+
_discovery phase_; a `TestEngine` may now optionally register containers and tests
112+
dynamically during the _execution phase_.
113+
* Include and exclude support for engines and tags has been completely revised.
114+
** Engines and tags can no longer be _required_ but rather _included_.
115+
** `ConsoleLauncher` now supports the following options: `t`/`include-tag`,
116+
`T`/`exclude-tag`, `e/include-engine`, `E/exclude-engine`.
117+
** The Gradle plugin now supports `engines` and `tags` configuration blocks with nested
118+
`include` and `exclude` entries.
119+
** `EngineFilter` now supports `includeEngines()` and `excludeEngines()` factory methods.
120+
** The `JUnitPlatform` runner now supports `@IncludeTags`, `@ExcludeTags`,
121+
`@IncludeEngines`, and `@ExcludeEngines`.
120122

121123
[[release-notes-5.0.0-m1-junit-jupiter]]
122124
===== JUnit Jupiter

0 commit comments

Comments
 (0)