It works without the package name right?  When I give the test with the
package name, it exits with a no tests to run message, where as when I try
without the packagename, then it works.




benshort wrote:
> 
> *mvn -Dtest=com.xxx.xxxx.InternalDAOTest test
> 
> On 7/30/07, ben short <[EMAIL PROTECTED]> wrote:
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Running-a-single-JUnit-test-tf4179089s177.html#a12850153
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to