Maven Surefire
  1. Maven Surefire
  2. SUREFIRE-849

Properites groups and excludedGroups do not enable JUnit47 provider

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.12
    • Fix Version/s: 2.12.3
    • Component/s: Junit 4.x support
    • Labels:
      None

      Description

      I'm trying to define groups or excludeGroups for JUnit execution. When I define property, JUnit4 provider is used, and the groups are ignored. To enable group support I have to define parallel parameter or define JUnit47 provider explicitly as plugin dependency.

      The plugin documentation is also inconsistent. The following goals documentation defines, that JUnit47 provider will be enabled:

      http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#groups
      http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#excludedGroups

      But on http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html, the formula for provider selection define only parallel parameter.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        163d 9h 45m 1 Kristian Rosenvold 18/Aug/12 14:44
        Mark Thomas made changes -
        Workflow jira [ 12965960 ] Default workflow, editable Closed status [ 13003687 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:36:33 UTC 2015 [ 1428284193036 ]
        Mark Thomas made changes -
        Workflow jira [ 12728094 ] Default workflow, editable Closed status [ 12759179 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:23:32 UTC 2015 [ 1428240212200 ]
        Kristian Rosenvold made changes -
        Field Original Value New Value
        Assignee Kristian Rosenvold [ krosenvold ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.13.0 [ 18704 ]
        Hide
        Kristian Rosenvold added a comment -

        Added failure conditions for some states that may cause groups to be silently ignored in r1374642. Also added ITs for all the cases mentioned inthis issue

        Show
        Kristian Rosenvold added a comment - Added failure conditions for some states that may cause groups to be silently ignored in r1374642. Also added ITs for all the cases mentioned inthis issue
        Hide
        Marcin Zajaczkowski added a comment -

        Is it not the same issue as in SUREFIRE-832?

        Show
        Marcin Zajaczkowski added a comment - Is it not the same issue as in SUREFIRE-832 ?
        Marcin Kuthan created issue -

          People

          • Assignee:
            Kristian Rosenvold
            Reporter:
            Marcin Kuthan
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development