Ondrej Zizka created SUREFIRE-808: ------------------------------------- Summary: Selectable "grouping mode" for test groups - UNION or INTERSECTION. Key: SUREFIRE-808 URL: https://jira.codehaus.org/browse/SUREFIRE-808 Project: Maven Surefire Issue Type: Improvement Components: Junit 4.7+ (parallel) support, Junit 4.x support Affects Versions: 2.11, 2.10 Reporter: Ondrej Zizka
Currently, the `groups` and `excludedGroups` work like: {code} ( include1 OR include2 ... ) AND NOT ( exclude1 OR exclude2 OR ... ) {code} 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: {code} ( EJB AND SecurityManager ) {code} The suggestion is to introduce two new params: {code} groupingMode = union|intersection excludeGroupingMode = union|intersection {code} 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 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira