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

Junit5 tag expression support for `any()` and `none()`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.22.2, 3.0.0-M5
    • None
    • JUnit 5.x support
    • None

    Description

      As of JUnit5 5.6.0 tag expression support was added for any() and none() but it does not seem surefire honors these.

      In 2.22.2 they seem to be silently ignored.

      In 3.0.0-M5 this message is output:

      [WARNING] Couldn't load group class 'none' in Surefire|Failsafe plugin. The group class is ignored!

      Sample configuration to run 'tests that do not have any tags':

                  <plugin>
                      <artifactId>maven-surefire-plugin</artifactId>
                      <configuration>
                          <groups>none()</groups>
                          <excludedGroups>any()</excludedGroups>
                      </configuration>
                  </plugin>
      

      Related: it's not clear the order of precedence for 'include' vs 'exclude'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drobert Daniel Robert
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: