Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.22.2, 3.0.0-M5
-
None
-
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'.