Thanks Wendy, I did try the naming pattern, something like mvn test -Dtest=Check* However, I have inner classes in my test cases and some of them start with the word Check. Surefire starts thinking that the inner class is also a test case and errors out because it cannot find a test method to run
On Thu, Jul 15, 2010 at 9:29 AM, Wendy Smoak <[email protected]> wrote: > On Thu, Jul 15, 2010 at 9:21 AM, Karan Malhi <[email protected]> > wrote: > > Is it possible to only run all tests contained in a specific package? > > You can configure includes/excludes in the Surefire plugin. > > http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html > > I guess you want to do this on the command line though. I'm only > aware of -Dtest=... which iirc matches on the class, not the package. > > http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html > I suppose if you had a naming pattern per package you could get them > that way. > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Karan Singh Malhi
