Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The -Dtest parameter is very handy for running a specific test class or test method. It also supports running multiple test classes. Unfortunately, it does not permit specifying running multiple test methods. It would be great if this were possible.
The examples below are from the Apache Commons project.
WORKS: Run multiple test classes:
mvn test -Dtest=ImmutablePairTest,StopWatchTest
WORKS: Run a specific test method:
mvn test -Dtest=ImmutablePairTest#testBasic
DOES NOT WORK:
mvn test -Dtest=StopWatchTest#testStopWatchSimple,StopWatchTest#testStopWatchSimpleGet
mvn test -Dtest=ImmutablePairTest#testBasic,StopWatchTest#testLang315