Skip to content

Commit 9f84f05

Browse files
authored
Merge branch 'main' into issues/5173-final-means-final
2 parents b4b1531 + eefea05 commit 9f84f05

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,18 +1493,18 @@ display name can be configured for each repetition via the `name` attribute of t
14931493
combination of static text and dynamic placeholders. The following placeholders are
14941494
currently supported.
14951495

1496-
- `{displayName}`: display name of the `@RepeatedTest` method
1497-
- `{currentRepetition}`: the current repetition count
1498-
- `{totalRepetitions}`: the total number of repetitions
1496+
- `+{displayName}+`: display name of the `@RepeatedTest` method
1497+
- `+{currentRepetition}+`: the current repetition count
1498+
- `+{totalRepetitions}+`: the total number of repetitions
14991499

15001500
The default display name for a given repetition is generated based on the following
1501-
pattern: `"repetition {currentRepetition} of {totalRepetitions}"`. Thus, the display
1501+
pattern: `"repetition +{currentRepetition}+ of +{totalRepetitions}+"`.Thus, the display
15021502
names for individual repetitions of the previous `repeatedTest()` example would be:
1503-
`repetition 1 of 10`, `repetition 2 of 10`, etc. If you would like the display name of
1503+
`repetition 1 of 10`, `repetition 2 of 10`, etc.If you would like the display name of
15041504
the `@RepeatedTest` method included in the name of each repetition, you can define your
1505-
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern. The
1506-
latter is equal to `"{displayName} :: repetition {currentRepetition} of
1507-
{totalRepetitions}"` which results in display names for individual repetitions like
1505+
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern.The
1506+
latter is equal to `"+{displayName}+ :: repetition +{currentRepetition}+ of
1507+
+{totalRepetitions}+"` which results in display names for individual repetitions like
15081508
`repeatedTest() :: repetition 1 of 10`, `repeatedTest() :: repetition 2 of 10`, etc.
15091509

15101510
In order to retrieve information about the current repetition, the total number of
@@ -1524,15 +1524,15 @@ The `repeatedTest()` method is identical to the example from the previous sectio
15241524
current repeated test.
15251525

15261526
`repeatedTestWithFailureThreshold()` demonstrates how to set a failure threshold and
1527-
simulates an unexpected failure for every second repetition. The resulting behavior can be
1527+
simulates an unexpected failure for every second repetition.The resulting behavior can be
15281528
viewed in the `ConsoleLauncher` output at the end of this section.
15291529

15301530
The next two methods demonstrate how to include a custom `@DisplayName` for the
15311531
`@RepeatedTest` method in the display name of each repetition. `customDisplayName()`
15321532
combines a custom display name with a custom pattern and then uses `TestInfo` to verify
1533-
the format of the generated display name. `Repeat!` is the `{displayName}` which comes
1533+
the format of the generated display name. `Repeat!` is the `+{displayName}+` which comes
15341534
from the `@DisplayName` declaration, and `1/1` comes from
1535-
`{currentRepetition}/{totalRepetitions}`. In contrast,
1535+
`+{currentRepetition}+/+{totalRepetitions}+`.In contrast,
15361536
`customDisplayNameWithLongPattern()` uses the aforementioned predefined
15371537
`RepeatedTest.LONG_DISPLAY_NAME` pattern.
15381538

@@ -1823,8 +1823,6 @@ Other extensions can access the parameters and resolved arguments of a parameter
18231823
or class by retrieving a `{ParameterInfo}` object from the `{ExtensionContext_Store}`.
18241824
Please refer to the Javadoc of `{ParameterInfo}` for details.
18251825

1826-
[[writing-tests-parameterized-tests-argument-aggregation]]
1827-
18281826
[[writing-tests-parameterized-tests-sources]]
18291827
==== Sources of Arguments
18301828

0 commit comments

Comments
 (0)