You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ed Young <ej...@summitbid.com> on 2011/01/20 22:04:50 UTC
mvn test and specifying a particular test file
when I execute mvn test, is there a way to select only one of my test files
in /src/test/java (or src/test/groovy)?
For example mvn test org.mydomain.myproject.MyTestFile
Re: mvn test and specifying a particular test file
Posted by Laird Nelson <lj...@gmail.com>.
mvn clean test -Dtest=MyTestFile
On Thu, Jan 20, 2011 at 4:04 PM, Ed Young <ej...@summitbid.com> wrote:
> when I execute mvn test, is there a way to select only one of my test files
> in /src/test/java (or src/test/groovy)?
>
> For example mvn test org.mydomain.myproject.MyTestFile
>
Re: mvn test and specifying a particular test file
Posted by Ed Young <ej...@summitbid.com>.
Yes, of course there is
mvn -Dtest=MyTest
It's in the FAQ. Sorry team.
On Thu, Jan 20, 2011 at 2:04 PM, Ed Young <ej...@summitbid.com> wrote:
> when I execute mvn test, is there a way to select only one of my test files
> in /src/test/java (or src/test/groovy)?
>
> For example mvn test org.mydomain.myproject.MyTestFile
>
>
>
--
- Ed