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.