Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-M4, 3.0.0-M5
-
None
-
None
Description
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
[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>
An issue for this problem was already closed in the past (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