Skip to content

Commit b822014

Browse files
committed
Rework, rewrite, revise
1 parent 5e02295 commit b822014

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

documentation/src/docs/asciidoc/user-guide/advanced-topics/junit-platform-suite-engine.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ include::{testDir}/example/BeforeAndAfterSuiteDemo.java[tags=user_guide]
6565
==== Duplicate test execution
6666

6767
Depending on the declared test selection, different suites may contain the same tests,
68-
potentially with different configurations. Moreover, tests in a suite are executed
69-
in addition to the tests executed by every other test engine. This can result in the same
70-
tests being executed twice.
68+
potentially with different configurations.
69+
70+
Moreover, tests in a suite are executed in addition to the tests executed by every other
71+
test engine. This can result in the same tests being executed twice.
7172

7273
image::suite-engine-duplicate-test-execution-diagram.svg[]
7374

junit-platform-suite-api/src/main/java/org/junit/platform/suite/api/Suite.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,17 @@
4444
* annotation disables the latter as a source of parameters so that only explicit
4545
* configuration parameters are taken into account.
4646
*
47-
* <p>Note: Tests in a suite are executed in addition to the tests executed by every
48-
* other test engine. This can result in the same tests being executed twice. This can be
49-
* prevented by configuring your build tool to only include the Suite Engine. Or by
50-
* using a naming pattern. For example name all suites {@code *Suite} and all tests
51-
* {@code *Test} and configure your build tool to only include the former. Alternatively,
52-
* consider using tags to select specific groups of tests.
47+
* <p>Note: Depending on the declared test selection, different suites may contain the
48+
* same tests, potentially with different configurations.
49+
*
50+
* <p>Moreover, tests in a suite are executed in addition to the tests executed by every
51+
* other test engine. This can result in the same tests being executed twice and can be
52+
* prevented by configuring your build tool to only include the
53+
* {@code junit-platform-suite} engine. Or by using a naming pattern. For example name
54+
* all suites {@code *Suite} and all tests {@code *Test} and configure your build tool
55+
* to only include the former.
56+
*
57+
* <p>Alternatively, consider using tags to select specific groups of tests.
5358
*
5459
* @since 1.8
5560
* @see Select

0 commit comments

Comments
 (0)