Daniel Robert created SUREFIRE-1873:
---------------------------------------
Summary: Junit5 tag expression support for `any()` and `none()`
Key: SUREFIRE-1873
URL: https://issues.apache.org/jira/browse/SUREFIRE-1873
Project: Maven Surefire
Issue Type: Bug
Components: JUnit 5.x support
Affects Versions: 3.0.0-M5, 2.22.2
Reporter: Daniel Robert
As of JUnit5
[5.6.0|https://junit.org/junit5/docs/5.7.0/release-notes/#release-notes-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:
{quote}[WARNING] Couldn't load group class 'none' in Surefire|Failsafe plugin.
The group class is ignored!
{quote}
Sample configuration to run 'tests that do not have any tags':
{code:xml}
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<groups>none()</groups>
<excludedGroups>any()</excludedGroups>
</configuration>
</plugin>
{code}
Related: it's not clear the order of precedence for 'include' vs 'exclude'.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)