If you mean how can you run a single JUnit test case, do this:

  maven -Dtestcase=<classname> test:single

I think <classname> needs to be fully qualified. To run multiple
test cases, do this:

  maven -Dtestmatch=<pattern> test:match

where <pattern> is something like "Test*Parser" or some other pattern
that matches your test names.

I don't think there is a way to run a single test method within a
single test case.

  Jeff

On Tue, 19 Aug 2003, at 01:33:30 [GMT -0300] Jonas Fagundes wrote:

> All,

> I'm a new user of maven (but I used ant).

> I needed today to run a single class.

> I read before about runner plugin but I didn't found the page.
> I try the http://maven.apache.org/reference/plugins/index.html ,
> but the link to runner plugin
> http://maven.apache.org/reference/plugins/runner/index.html return
> 404.

> I verified that the runner plugin isn't avaiable in maven-1.0-beta-10
> (I used maven -g).

> I solve my problem using JUnit :), this was what I really needed.

> Anyway, the question was not answered by my search, how can I run a single
> class in maven?

> If I searched in the wrong place (maven.apache.org + google), please, tell 
> me
> where I can found this information.

> []'s Jonas

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

-- 
mailto:[EMAIL PROTECTED]



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

Reply via email to