Skip to content

Commit 9bffb3f

Browse files
committed
Use passthroughs
1 parent 529c860 commit 9bffb3f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

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

1448-
- `{displayName}`: display name of the `@RepeatedTest` method
1449-
- `{currentRepetition}`: the current repetition count
1450-
- `{totalRepetitions}`: the total number of repetitions
1448+
- `+{displayName}+`: display name of the `@RepeatedTest` method
1449+
- `+{currentRepetition}+`: the current repetition count
1450+
- `+{totalRepetitions}+`: the total number of repetitions
14511451

14521452
The default display name for a given repetition is generated based on the following
1453-
pattern: `"repetition {currentRepetition} of {totalRepetitions}"`. Thus, the display
1453+
pattern: `"repetition +{currentRepetition}+ of +{totalRepetitions}+"`.Thus, the display
14541454
names for individual repetitions of the previous `repeatedTest()` example would be:
1455-
`repetition 1 of 10`, `repetition 2 of 10`, etc. If you would like the display name of
1455+
`repetition 1 of 10`, `repetition 2 of 10`, etc.If you would like the display name of
14561456
the `@RepeatedTest` method included in the name of each repetition, you can define your
1457-
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern. The
1458-
latter is equal to `"{displayName} :: repetition {currentRepetition} of
1459-
{totalRepetitions}"` which results in display names for individual repetitions like
1457+
own custom pattern or use the predefined `RepeatedTest.LONG_DISPLAY_NAME` pattern.The
1458+
latter is equal to `"+{displayName}+ :: repetition +{currentRepetition}+ of
1459+
+{totalRepetitions}+"` which results in display names for individual repetitions like
14601460
`repeatedTest() :: repetition 1 of 10`, `repeatedTest() :: repetition 2 of 10`, etc.
14611461

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

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

14821482
The next two methods demonstrate how to include a custom `@DisplayName` for the
14831483
`@RepeatedTest` method in the display name of each repetition. `customDisplayName()`
14841484
combines a custom display name with a custom pattern and then uses `TestInfo` to verify
1485-
the format of the generated display name. `Repeat!` is the `{displayName}` which comes
1485+
the format of the generated display name. `Repeat!` is the `+{displayName}+` which comes
14861486
from the `@DisplayName` declaration, and `1/1` comes from
1487-
`{currentRepetition}/{totalRepetitions}`. In contrast,
1487+
`+{currentRepetition}+/+{totalRepetitions}+`.In contrast,
14881488
`customDisplayNameWithLongPattern()` uses the aforementioned predefined
14891489
`RepeatedTest.LONG_DISPLAY_NAME` pattern.
14901490

0 commit comments

Comments
 (0)