You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Suneet Shah <su...@gmail.com> on 2007/09/29 00:49:02 UTC

Controlling the test cases called in build process

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.  Alternatively, is it possible to do an mvn install or other
command that will build the project without running the test cases.

thanks in advance

Re: Controlling the test cases called in build process

Posted by Suneet Shah <su...@gmail.com>.
thanks very much for the quick reply
Suneet


On 9/28/07, Tomasz Pik <to...@gmail.com> wrote:
>
> On 9/29/07, Suneet Shah <su...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Controlling the test cases called in build process

Posted by Tomasz Pik <to...@gmail.com>.
On 9/29/07, Suneet Shah <su...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org