@@ -346,7 +346,7 @@ table lists the default display name generators available in Jupiter.
346
346
|===
347
347
| DisplayNameGenerator | Behavior
348
348
349
- | `Standard` | Matches the standard display name generation behavior in place since JUnit Jupiter 5.0 was released .
349
+ | `Standard` | Matches the standard display name generation behavior in place since JUnit Jupiter was introduced .
350
350
| `Simple` | Extends the functionality of `Standard` by removing trailing parentheses for methods with no parameters.
351
351
| `ReplaceUnderscores` | Replaces underscores with spaces.
352
352
| `IndicativeSentences` | Generates complete sentences by concatenating the names of the test and the enclosing classes.
@@ -858,11 +858,12 @@ include::{testDir}/example/ConditionalTestExecutionDemo.java[tags=user_guide_jre
858
858
859
859
Since the enum constants defined in {JRE} are static for any given JUnit release, you
860
860
might find that you need to configure a Java version that is not supported by the `JRE`
861
- enum. For example, as of JUnit Jupiter 5.12 the `JRE` enum defines `JAVA_25` as the
862
- highest supported Java version. However, you may wish to run your tests against later
863
- versions of Java. To support such use cases, you can specify arbitrary Java versions via
864
- the `versions` attributes in `@EnabledOnJre` and `@DisabledOnJre` and via the `minVersion`
865
- and `maxVersion` attributes in `@EnabledForJreRange` and `@DisabledForJreRange`.
861
+ enum. For example, when JUnit Jupiter 5.12 was released the `JRE` enum defined `JAVA_25`
862
+ as the highest supported Java version. However, you may wish to run your tests against
863
+ later versions of Java. To support such use cases, you can specify arbitrary Java versions
864
+ via the `versions` attributes in `@EnabledOnJre` and `@DisabledOnJre` and via the
865
+ `minVersion` and `maxVersion` attributes in `@EnabledForJreRange` and
866
+ `@DisabledForJreRange`.
866
867
867
868
The following listing demonstrates the use of these annotations with arbitrary Java
868
869
versions.
@@ -902,10 +903,10 @@ include::{testDir}/example/ConditionalTestExecutionDemo.java[tags=user_guide_sys
902
903
903
904
[TIP]
904
905
====
905
- As of JUnit Jupiter 5.6, `{EnabledIfSystemProperty}` and `{DisabledIfSystemProperty}` are
906
- _repeatable annotations_. Consequently, these annotations may be declared multiple times
907
- on a test interface, test class, or test method. Specifically, these annotations will be
908
- found if they are directly present, indirectly present, or meta-present on a given element.
906
+ `{EnabledIfSystemProperty}` and `{DisabledIfSystemProperty}` are _repeatable annotations_.
907
+ Consequently, these annotations may be declared multiple times on a test interface, test
908
+ class, or test method. Specifically, these annotations will be found if they are directly
909
+ present, indirectly present, or meta-present on a given element.
909
910
====
910
911
911
912
[[writing-tests-conditional-execution-environment-variables]]
@@ -923,11 +924,10 @@ include::{testDir}/example/ConditionalTestExecutionDemo.java[tags=user_guide_env
923
924
924
925
[TIP]
925
926
====
926
- As of JUnit Jupiter 5.6, `{EnabledIfEnvironmentVariable}` and
927
- `{DisabledIfEnvironmentVariable}` are _repeatable annotations_. Consequently, these
928
- annotations may be declared multiple times on a test interface, test class, or test
929
- method. Specifically, these annotations will be found if they are directly present,
930
- indirectly present, or meta-present on a given element.
927
+ `{EnabledIfEnvironmentVariable}` and `{DisabledIfEnvironmentVariable}` are _repeatable
928
+ annotations_. Consequently, these annotations may be declared multiple times on a test
929
+ interface, test class, or test method. Specifically, these annotations will be found if
930
+ they are directly present, indirectly present, or meta-present on a given element.
931
931
====
932
932
933
933
[[writing-tests-conditional-execution-custom]]
@@ -1472,11 +1472,11 @@ void repeatedTest() {
1472
1472
}
1473
1473
----
1474
1474
1475
- Since JUnit Jupiter 5.10, `@RepeatedTest` can be configured with a failure threshold which
1476
- signifies the number of failures after which remaining repetitions will be automatically
1477
- skipped. Set the `failureThreshold` attribute to a positive number less than the total
1478
- number of repetitions in order to skip the invocations of remaining repetitions after the
1479
- specified number of failures has been encountered.
1475
+ `@RepeatedTest` can be configured with a failure threshold which signifies the number of
1476
+ failures after which remaining repetitions will be automatically skipped. Set the
1477
+ `failureThreshold` attribute to a positive number less than the total number of
1478
+ repetitions in order to skip the invocations of remaining repetitions after the specified
1479
+ number of failures has been encountered.
1480
1480
1481
1481
For example, if you are using `@RepeatedTest` to repeatedly invoke a test that you suspect
1482
1482
to be _flaky_, a single failure is sufficient to demonstrate that the test is flaky, and
@@ -3276,12 +3276,11 @@ This heuristic is queried by the `disabled_on_debug` mode.
3276
3276
[[writing-tests-parallel-execution]]
3277
3277
=== Parallel Execution
3278
3278
3279
- By default, JUnit Jupiter tests are run sequentially in a single thread. Running tests in
3280
- parallel -- for example, to speed up execution -- is available as an opt-in feature since
3281
- version 5.3. To enable parallel execution, set the
3282
- `junit.jupiter.execution.parallel.enabled` configuration parameter to `true` -- for
3283
- example, in `junit-platform.properties` (see <<running-tests-config-params>> for other
3284
- options).
3279
+ By default, JUnit Jupiter tests are run sequentially in a single thread; however, running
3280
+ tests in parallel -- for example, to speed up execution -- is available as an opt-in
3281
+ feature. To enable parallel execution, set the `junit.jupiter.execution.parallel.enabled`
3282
+ configuration parameter to `true` -- for example, in `junit-platform.properties` (see
3283
+ <<running-tests-config-params>> for other options).
3285
3284
3286
3285
Please note that enabling this property is only the first step required to execute tests
3287
3286
in parallel. If enabled, test classes and methods will still be executed sequentially by
0 commit comments