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

Better support for other plugins to determine which tests are included/excluded and the order the tests get run

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      Currently, it is possible to provide the 'test' pattern to the maven-surefire-plugin to include/exclude specific tests to be run.
      This can be set on the MavenProject instance of any plugin which runs prior to the surefire plugin.
      Since this is just a pattern of tests to include, it has the following shortcomings:

      • To excludes a single test, you need to add all tests, minus the test to exclude
      • The order of the test patterns is not used when the tests get run.

      If there is no better means to control which tests get run and in which order from outside the surefire plugin, how do you suggest this be achieved?
      This may require changes to maven core to allow attributes <String,Objects> be set as well as Properties.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                npellow Nick Pellow
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: