Re: mvn test -Dtest=...TestClass shows the wrong error

2013-11-26 Thread Andrew Pennebaker
Not quite. I want a specific error message printed when a user specifies a test class to run, and the class does not exist. I updated my surefire version to 2.12 and got the same behavior as before. On Mon, Nov 25, 2013 at 4:28 PM, Robert Scholte wrote: > IIUC this has been fixed with version 2

Re: mvn test -Dtest=...TestClass shows the wrong error

2013-11-25 Thread Robert Scholte
IIUC this has been fixed with version 2.12 by adding the failIfNoSpecifiedTests[1] Robert [1] http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#failIfNoSpecifiedTests Op Mon, 25 Nov 2013 16:07:53 +0100 schreef Andrew Pennebaker : If I try to run a single test clas

mvn test -Dtest=...TestClass shows the wrong error

2013-11-25 Thread Andrew Pennebaker
If I try to run a single test class with: mvn test -Dtest=namespace1.TestClass But TestClass is really in namespace1.namespace2, then Maven reports: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project p1: No tests were executed! (Set -DfailIf