Your missing test from the end of your class name, see [1]

mvn -Dtest=com.xxx.xxxx.InternalDAOtest test


[1] 
http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html



On 7/30/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
> Hello,
> Maven 2.0.7
>
> I have a project that encompases different projects, so I have a
> parent pom with children. I created a JUnit test called
> InternalDAOTest.java. In my pom, I have the following:
>
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <includes>
>                 <include>**/*Test.java</include>
>            </includes>
>          </configuration>
> </plugin>
>
> So I would think I should be able to run my file like so:
> mvn -Dtest=com.xxx.xxxx.InternalDAO
> but it does not run, it scans for projects and reports back
> BUILD FAILURE. You must specify at least one goal.
>
> So then I try
> mvn -Dtest=com.xxx.xxxx.InternalDAO test and it runs a bunch of
> other testSuites etc but not my one test.
>
> How should it run a single JUnit test with 16 tests? Anyone?
> Kind of stuck here.
>
> Thanks,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to