Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1966

DisplayName of DynamicTests in JUnit5 not shown

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            wandi34 Andreas Winter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: