junit 5.5.2
@ValueSource(ints = { -1, 1 })
@ParameterizedTest(name = "don't message {0}")
void myTest(int value) {}
The pling in the name string courses the test name to be formatted wrong.
The result is "dont message {0}"
Removing the pling results in:
"dont message -1" and "dont message 1"
We should document this better: name is a MessageFormat pattern, i.e. you need to write don''t message {0}.
Note that we do actually have an example including single quotes in the name in the User Guide, but it's not specifically documented.
Done in c9e00df612857d55be043d4ae02026ddf5adc5b8.
Most helpful comment
We should document this better:
nameis aMessageFormatpattern, i.e. you need to writedon''t message {0}.