Skip to content

Commit 439084d

Browse files
committed
Polish documentation for 5.8 GA
1 parent fa021ed commit 439084d

File tree

4 files changed

+41
-26
lines changed

4 files changed

+41
-26
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.8.0.adoc

+16-10
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ on GitHub.
2929

3030
==== Deprecations and Breaking Changes
3131

32-
* Since the API Guardian dependency is no longer exported as a runtime but as a
32+
* Since the API Guardian dependency is no longer exported as a runtime but rather as a
3333
compile-only dependency to consuming Gradle projects, Gradle builds that define their own
3434
https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:what-are-dependency-configurations[dependency configurations]
3535
may be affected. For example, if the custom configuration is used to manipulate a source
3636
set's classpath directly, dependency attributes needed for Gradle's variant-aware
37-
dependency management are dropped and API Guardian is missing from the compile
37+
dependency management are dropped, and API Guardian is missing from the compile
3838
classpath. In that case, the Java compiler emits warnings which -- depending on your
3939
configured options -- may cause the build to fail. The solution is to avoid manipulating
4040
a source set's classpath directly. Instead, its dependency configurations should extend
@@ -71,8 +71,11 @@ on GitHub.
7171
==== New Features and Improvements
7272

7373
* New `junit-platform-suite-engine` module to execute declarative test suites on the JUnit
74-
Platform.
75-
* Additional selectors in the suite API in the `junit-platform-suite-api` module.
74+
Platform. See <<../user-guide/index.adoc#junit-platform-suite-engine, JUnit Platform
75+
Suite Engine>> for details.
76+
* Additional selectors in the suite API in the `junit-platform-suite-api` module. See the
77+
Javadoc of the `{suite-api-package}` package for a full list of supported annotations
78+
and further details.
7679
* New `UniqueIdTrackingListener` which is a `TestExecutionListener` that tracks the unique
7780
IDs of all tests that were skipped or executed during the `TestPlan` and generates a
7881
file containing the unique IDs. The generated file can be used to rerun those tests --
@@ -90,12 +93,13 @@ on GitHub.
9093
nested container events when using the `EngineTestKit`. For example,
9194
`test(displayName("my test"))` can be used to match against a test whose display name is
9295
`my test`.
93-
* Generating Java Flight Recorder events via the `junit-platform-jfr` module is now also
94-
supported on Java 8 Update 262 or higher, in addition to Java 11 or later. See
95-
<<../user-guide/index.adoc#running-tests, Flight Recorder Support>> for details.
96-
* The `junit-platform-jfr` module now reports execution events for containers -- for
96+
* Generating Java Flight Recorder (JFR) events via the `junit-platform-jfr` module is now
97+
also supported on Java 8 Update 262 or higher, in addition to Java 11 or later. See
98+
<<../user-guide/index.adoc#running-tests-listeners-flight-recorder, Flight Recorder
99+
Support>> for details.
100+
* The `junit-platform-jfr` module now publishes execution events for containers -- for
97101
example, test classes.
98-
* The `junit-platform-jfr` module now reports test discovery events for the launcher and
102+
* The `junit-platform-jfr` module now publishes test discovery events for the launcher and
99103
registered test engines.
100104
* New `ClassSource.from(URI)` static factory method for creating a `ClassSource` from a
101105
URI using the `class` scheme and optional query parameters specifying the line number
@@ -153,7 +157,9 @@ on GitHub.
153157

154158
* Test classes can now be ordered _globally_ by supplying the fully-qualified name of a
155159
class implementing the `ClassOrderer` API as the value of the new
156-
`junit.jupiter.testclass.order.default` configuration parameter.
160+
`junit.jupiter.testclass.order.default` configuration parameter. See
161+
<<../user-guide/index.adoc#writing-tests-test-execution-order-classes, Class Order>> for
162+
details.
157163
* `@Nested` test classes can be ordered _locally_ via the new `@TestClassOrder` annotation
158164
in which a `ClassOrderer` can be specified.
159165
* `@ExtendWith` may now be used to register extensions declaratively via fields or
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
[[junit-platform-suite-engine]]
22
=== JUnit Platform Suite Engine
33

4-
The JUnit Platform supports declarative definition and execution of suites of tests from
5-
_any_ test engine using the Junit Platform.
4+
The JUnit Platform supports the declarative definition and execution of suites of tests
5+
from _any_ test engine using the JUnit Platform.
66

7+
[[junit-platform-suite-engine-setup]]
78
==== Setup
89

9-
In addition to _at least one_ other test engine, you need the following artifacts and
10-
their dependencies on the classpath. See <<dependency-metadata>> for details regarding
11-
group IDs, artifact IDs, and versions.
10+
In addition to the `junit-platform-suite-api` and `junit-platform-suite-engine` artifacts,
11+
you need _at least one_ other test engine and its dependencies on the classpath. See
12+
<<dependency-metadata>> for details regarding group IDs, artifact IDs, and versions.
1213

13-
===== Explicit Dependencies
14+
[[junit-platform-suite-engine-setup-required-dependencies]]
15+
===== Required Dependencies
1416

15-
* `junit-platform-suite-api` in _test_ scope
17+
* `junit-platform-suite-api` in _test_ scope: artifact containing annotations needed to
18+
configure a test suite
1619
* `junit-platform-suite-engine` in _test runtime_ scope: implementation of the
17-
`TestEngine` API for the declarative Junit Platform
18-
Suites
20+
`TestEngine` API for declarative test suites
1921

20-
NOTE: Both dependencies are aggregated in `junit-platform-suite` which can be used in
21-
_test_ scope.
22+
NOTE: Both of the required dependencies are aggregated in the `junit-platform-suite`
23+
artifact which can be declard in _test_ scope instead of declaring explicit dependencies
24+
on `junit-platform-suite-api` and `junit-platform-suite-engine`.
2225

26+
[[junit-platform-suite-engine-setup-transitive-dependencies]]
2327
===== Transitive Dependencies
2428

2529
* `junit-platform-suite-commons` in _test_ scope
@@ -28,7 +32,8 @@ _test_ scope.
2832
* `junit-platform-commons` in _test_ scope
2933
* `opentest4j` in _test_ scope
3034

31-
==== Test Suite
35+
[[junit-platform-suite-engine-example]]
36+
==== @Suite Example
3237

3338
By annotating a class with `@Suite` it is marked as a test suite on the JUnit Platform.
3439
As seen in the following example, selector and filter annotations can then be used to
@@ -40,6 +45,6 @@ include::{testDir}/example/SuiteDemo.java[tags=user_guide]
4045
----
4146

4247
.Additional Configuration Options
43-
NOTE: There are more configuration options for discovering and filtering tests than just
44-
`@SelectPackages`. Please consult the Javadoc of the `{suite-api-package}` package for
45-
further details.
48+
NOTE: There are numerous configuration options for discovering and filtering tests in a
49+
test suite. Please consult the Javadoc of the `{suite-api-package}` package for a full
50+
list of supported annotations and further details.

documentation/src/docs/asciidoc/user-guide/running-tests.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ to reporting (see <<running-tests-junit-platform-runner-technical-names>>).
640640
You need the following artifacts and their dependencies on the classpath. See
641641
<<dependency-metadata>> for details regarding group IDs, artifact IDs, and versions.
642642

643+
[[running-tests-junit-platform-runner-setup-explicit-dependencies]]
643644
===== Explicit Dependencies
644645

645646
* `junit-platform-runner` in _test_ scope: location of the `JUnitPlatform` runner
@@ -649,6 +650,7 @@ You need the following artifacts and their dependencies on the classpath. See
649650
* `junit-jupiter-engine` in _test runtime_ scope: implementation of the `TestEngine` API
650651
for JUnit Jupiter
651652

653+
[[running-tests-junit-platform-runner-setup-transitive-dependencies]]
652654
===== Transitive Dependencies
653655

654656
* `junit-platform-suite-api` in _test_ scope

documentation/src/test/java/example/SuiteDemo.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
1111
package example;
1212

1313
//tag::user_guide[]
14+
import org.junit.platform.suite.api.IncludeClassNamePatterns;
1415
import org.junit.platform.suite.api.SelectPackages;
1516
import org.junit.platform.suite.api.Suite;
1617
import org.junit.platform.suite.api.SuiteDisplayName;
1718

1819
@Suite
1920
@SuiteDisplayName("JUnit Platform Suite Demo")
2021
@SelectPackages("example")
22+
@IncludeClassNamePatterns(".*Tests")
2123
//end::user_guide[]
2224
@org.junit.platform.suite.api.ExcludeTags("exclude")
2325
//tag::user_guide[]
24-
public class SuiteDemo {
26+
class SuiteDemo {
2527
}
2628
//end::user_guide[]

0 commit comments

Comments
 (0)