Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.12
-
None
-
Mac OS X 10.7, Maven 3.0.3, JDK 1.7.0_04-ea
Description
Description
If a single test is specified from using CLI parameters, but the test does not match the <includes> pattern for failsafe, then the test will not run. This is different from the behavior for the surefire plugin, which will run any test specified using CLI parameters. If the test does match the <includes> pattern for failsafe, then it will run.
Reproduction steps
- Create a project with a single test named "Sample.java".
- Add the following block to the failsafe configuration:
<includes> <include>**/Sample.java</include> </includes>
- Run "mvn clean verify -Dit.test=Sample" from the command line (and verify that test runs).
- Remove the <includes> block shown above from the pom.
- Run "mvn clean verify -Dit.test=Sample" from the command line.
Expected results
Sample test is run, as before, and no other tests are run.
Actual results
No tests are run.
Attachments
Issue Links
- is duplicated by
-
SUREFIRE-1180 Does not overrides include/exclude using -Dtest property
- Closed
- relates to
-
SUREFIRE-827 Surefire 2.12 cannot run a single test, regression from 2.11
- Closed