11[[junit-platform-suite-engine]]
22=== JUnit Platform Suite Engine
33
4- The Suite Engine supports the declarative selection and execution of tests from
5- _any_ test engine on the JUnit Platform using the <<launcher-api>>.
4+ The Suite Engine supports the declarative selection and execution of tests from _any_ test
5+ engine on the JUnit Platform using the <<launcher-api>>.
66
77image::junit-platform-suite-engine-diagram.svg[role=text-center]
88
@@ -36,9 +36,9 @@ on `junit-platform-suite-api` and `junit-platform-suite-engine`.
3636[[junit-platform-suite-engine-example]]
3737==== @Suite Example
3838
39- By annotating a class with `@Suite` it is marked as a test suite on the JUnit Platform.
40- As seen in the following example, selector and filter annotations can then be used to
41- control the contents of the suite.
39+ Annotate a class with `@Suite` to have it marked as a test suite on the JUnit Platform. As
40+ seen in the following example, selector and filter annotations can be used to control the
41+ contents of the suite.
4242
4343[source,java,indent=0]
4444----
@@ -53,26 +53,28 @@ list of supported annotations and further details.
5353==== @BeforeSuite and @AfterSuite
5454
5555`@BeforeSuite` and `@AfterSuite` annotations can be used on methods inside a
56- `@Suite`-annotated class. They will be executed respectively before and after
57- all tests of the test suite.
56+ `@Suite`-annotated class. They will be executed before and after all tests of the test
57+ suite, respectively .
5858
5959[source,java,indent=0]
6060----
6161include::{testDir}/example/BeforeAndAfterSuiteDemo.java[tags=user_guide]
6262----
6363
6464[[junit-platform-suite-engine-duplicate-test-execution]]
65- ==== Duplicate test execution
65+ ==== Duplicate Test Execution
6666
67- Depending on the declared test selection , different suites may contain the same tests,
68- potentially with different configurations.
69- Moreover, tests in a suite are executed in addition to the tests executed by every other
70- test engine. This can result in the same tests being executed twice.
67+ Depending on the declared selectors , different suites may contain the same tests,
68+ potentially with different configurations. Moreover, tests in a suite are executed in
69+ addition to the tests executed by every other test engine, which can result in the same
70+ tests being executed twice.
7171
7272image::junit-platform-suite-engine-duplicate-test-execution-diagram.svg[role=text-center]
7373
74- This can be prevented by configuring your build tool to only include the
75- `junit-platform-suite` engine. Or by using a naming pattern. For example, name all suites
76- `*Suite` and all tests `*Test` and configure your build tool to only include the former.
74+ To prevent duplicate execution of tests within a suite, configure your build tool to
75+ include only the `junit-platform-suite` engine, or use a custom naming pattern. For
76+ example, name all suites `*Suite` and all tests `*Test`, and configure your build tool to
77+ include only the former.
7778
78- Alternatively, consider <<running-tests-tags, using tags>> to select specific groups of tests.
79+ Alternatively, consider <<running-tests-tags, using tags>> to select specific groups of
80+ tests.
0 commit comments