On 9/29/07, Suneet Shah <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to maven.  Is there a way to control which test classes are called
> when I do an mvn install? One of my junit test cases is causing the jvm to
> run out of memory, but works fine in eclipse. I would like to be able to
> troubleshoot it and was wondering if there is a way to just to call that
> test case.

http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html
also - look over other examples, listed there (Examples section)
Maybe 'forking' with help in your case if you'll provide -Xmx argument
with appropriate value to JVM executing your test.

> Alternatively, is it possible to do an mvn install or other
> command that will build the project without running the test cases.

Also there:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html

HTH,
Tomek

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

Reply via email to