@@ -1445,18 +1445,18 @@ display name can be configured for each repetition via the `name` attribute of t
14451445combination of static text and dynamic placeholders. The following placeholders are
14461446currently 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
14521452The 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
14541454names 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
14561456the `@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
14621462In 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
14761476current 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
14801480viewed in the `ConsoleLauncher` output at the end of this section.
14811481
14821482The next two methods demonstrate how to include a custom `@DisplayName` for the
14831483`@RepeatedTest` method in the display name of each repetition. `customDisplayName()`
14841484combines 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
14861486from 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