Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.8
-
None
-
None
-
JDK 6u24, Ubuntu
Description
See SUREFIRE-577. After
diff --git a/maven-model/pom.xml b/maven-model/pom.xml index bc66415..903648a 100644 --- a/maven-model/pom.xml +++ b/maven-model/pom.xml @@ -74,6 +74,11 @@ under the License. </moduleExcludes> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.8</version> + </plugin> </plugins> </build>
if I run
mvn -f maven-model/pom.xml -Dtest=org.apache.maven.model.DependencyTest\#testEqualsIdentity surefire:test
I see
[INFO] --- maven-surefire-plugin:2.8:test (default-cli) @ maven-model --- [INFO] Surefire report directory: .../maven-model/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.maven.model.DependencyTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec Results : Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
Similarly, in a new quickstart project if I create
package test.test196655; import junit.framework.TestCase; public class AppTest extends TestCase { public void test1() {} public void test2() {} }
and run
mvn -Dtest=test.test196655.AppTest#test1 test-compile surefire:test
both tests are run until I upgrade the JUnit dep from 3.8.1 to 4.8.2.
By the way the corresponding function works as expected in Ant 1.8.2.
Attachments
Issue Links
- is depended upon by
-
SUREFIRE-577 running only some method of a unit class (with -Dtest=MyClass#myMethod)
- Closed