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

Support JUnit Platform DiscoverySelectors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-M6
    • Component/s: None
    • Labels:
      None

      Description

      The JUnit Platform defines multiple DiscoverySelectors to discover tests in different locations. This allows TestEngines to discover tests in classes, the class path root, resource root, files, ect.

      Currently Surefire supports TestEngine implementations  through the JUnitPlatformProvider. However the JUnitPlatformProvider only issues discovery requests for classes that have already been discovered by Surefire. Additionally if no tests were discovered by Surefire then no test discovery requests will be issued at all.

      This means that Surefire does not fully utilize the discovery capabilities of the JUnit Platform and makes it impossible to use the JUnitPlatformProvider for test frameworks that do not have class based tests such as Cucumber.

      To make Cucumber work at the very least the class path root discovery selector would have to be supported.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mpkorstanje M.P. Korstanje
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: