Andreas Winter created SUREFIRE-1966:
----------------------------------------
Summary: DisplayName of DynamicTests in JUnit5 not shown
Key: SUREFIRE-1966
URL: https://issues.apache.org/jira/browse/SUREFIRE-1966
Project: Maven Surefire
Issue Type: Bug
Components: JUnit 5.x support, Maven Surefire Plugin
Affects Versions: 3.0.0-M5, 3.0.0-M4
Reporter: Andreas Winter
*Expected:*
The surefire Plugin should display the @DisplayName values of JUnit5
DynamicTests.
*Actual:*
The surefire plugin just shows the index of the runned test and in case of a
failed test also the class name
{code:java}
[ERROR] Failures:
[ERROR] SomeTest.allYearsShouldBeValid
[ERROR] Run 1: SomeTest.lambda$null$0:25->checkString:29 expected: <2020> but
was: <2019>
[INFO] Run 2: PASS
[ERROR] Run 3: SomeTest.lambda$null$0:25->checkString:29 expected: <2020> but
was: <2021>{code}
An issue for this problem was already closed in the past
([https://github.com/junit-team/junit5/issues/990)|https://github.com/junit-team/junit5/issues/990]
but the actual problem has not been resolved yet.
*Test environment*
JUnit5: 5.8.2 (also tested with 5.7.0)
Surefire-Plugin: 3.0.0-M5 (also tested with 3.0.0-M4)
An example project can be found here:
[https://github.com/wandi34/dynamic-surefire-tests-issue]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)