apache / apache/maven-surefire

[SUREFIRE-1873] Junit5 tag expression support for `any()` and `none()`

Open
#2,971 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Daniel Robert](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=drobert)** opened **[SUREFIRE-1873](https://issues.apache.org/jira/browse/SUREFIRE-1873?redirect=false)** and commented

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:

> [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':

```xml

maven-surefire-plugin

none()
any()

```

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

---

**Affects:** 2.22.2, 3.0.0-M5

1 votes, 3 watchers

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the supplied Maven Surefire configuration, then trace how groups and excludedGroups are interpreted; done means any() and none() are honored and the include-versus-exclude precedence is documented or verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.