[ 
https://jira.codehaus.org/browse/SUREFIRE-808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285798#comment-285798
 ] 

Kristian Rosenvold commented on SUREFIRE-808:
---------------------------------------------

Personally I strongly prefer avoiding a new paramters since the plugin is so 
bloated with paramterers already, ewpecially if it feats neatly into the 
existing semantics like the (||)&& stuff
                
> 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.10, 2.11
>            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

        

Reply via email to