Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.10, 2.11
-
None
-
None
Description
Currently, the `groups` and `excludedGroups` work like:
( include1 OR include2 ... ) AND NOT ( exclude1 OR exclude2 OR ... )
This doesn't cover many usecases. For instance, if the groups overlap.
Example: user needs to run only EJB tests under security manager, while only some EJB tests can run under security manager.
In such case, this is needed:
( EJB AND SecurityManager )
The suggestion is to introduce two new params:
groupingMode = union|intersection excludeGroupingMode = union|intersection
They would switch AND and OR behavior.
Union would be the default (preserving current behavior).
Would be implemented in a filter, see:
https://github.com/apache/maven-surefire/blob/trunk/surefire-providers/common-junit48/src/main/java/org/apache/maven/surefire/common/junit48/FilterFactory.java#L115
Attachments
Issue Links
- relates to
-
SUREFIRE-809 Implement boolean expression to define test group to be run.
- Closed