Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-808

Selectable "grouping mode" for test groups - UNION or INTERSECTION.

    Details

      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

            Activity

              People

              • Assignee:
                jdcasey John Casey
                Reporter:
                pekarna Ondra Žižka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: