You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jason Novotny <no...@gridsphere.org> on 2008/12/23 23:25:52 UTC
how to make surefire die if a single test fails
Hi,
What maven configuration do I need to do to make maven die
completely if any test fails?
Thanks, Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven archetipe for multimodule project
Posted by Nick Stolwijk <ni...@gmail.com>.
As far as I know there is no archetype for it. Those pom files of
packaging "pom" often start small and grow with the project. I
normally use maven-archetype-quickstart followed by an rm -rf src and
changing the packaging from jar to pom. Every mvn archetype:generate
(create is deprecated) in that folder are automatically added to this
parent pom, so works as expected. :)
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Wed, Dec 24, 2008 at 1:19 PM, Koxkorrita <ko...@laudio.info> wrote:
> hello for building one multimodule j2ee proyect , for the parent proyect i
> am using this:
> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=or.midomain
> -DartifactId=project -DpackageName= -Dversion=1.0
>
> but this make the src, test and other directories. this project, the parent,
> doesnt must to have theses directoris.
> which is the archetipe for make this?
>
> thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
maven archetipe for multimodule project
Posted by Koxkorrita <ko...@laudio.info>.
hello for building one multimodule j2ee proyect , for the parent proyect i
am using this:
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=or.midomain
-DartifactId=project -DpackageName= -Dversion=1.0
but this make the src, test and other directories. this project, the parent,
doesnt must to have theses directoris.
which is the archetipe for make this?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to make surefire die if a single test fails
Posted by Jason Novotny <no...@gridsphere.org>.
That sounds promising, unfortunately I only came across a
"failIfNoTests" option...
Thanks, Jason
Baptiste MATHUS wrote:
> Or maybe Jason wants a failfast behaviour. If so, then I don't think it's
> possible (see
> http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html for
> existing options).
>
> And if so, again, you should know interdependent JUnit test is a very bad
> practice. JUnit tests should be executable in any order (when no order is
> specified, since I seem to remember it's possible to specify one with testng
> e.g.).
>
> Cheers.
>
> 2008/12/24 Jaikiran <ja...@yahoo.co.in>
>
>
>> novotny wrote:
>>
>>> Hi,
>>>
>>> What maven configuration do I need to do to make maven die
>>> completely if any test fails?
>>>
>>> Thanks, Jason
>>>
>>>
>>>
>> As far as i know, that's the default behaviour. Unless you have set the
>> maven.test.failure.ignore to true
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-make-surefire-die-if-a-single-test-fails-tp21152426p21156002.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to make surefire die if a single test fails
Posted by Baptiste MATHUS <ml...@batmat.net>.
Or maybe Jason wants a failfast behaviour. If so, then I don't think it's
possible (see
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html for
existing options).
And if so, again, you should know interdependent JUnit test is a very bad
practice. JUnit tests should be executable in any order (when no order is
specified, since I seem to remember it's possible to specify one with testng
e.g.).
Cheers.
2008/12/24 Jaikiran <ja...@yahoo.co.in>
>
>
> novotny wrote:
> >
> >
> > Hi,
> >
> > What maven configuration do I need to do to make maven die
> > completely if any test fails?
> >
> > Thanks, Jason
> >
> >
>
> As far as i know, that's the default behaviour. Unless you have set the
> maven.test.failure.ignore to true
>
>
> --
> View this message in context:
> http://www.nabble.com/how-to-make-surefire-die-if-a-single-test-fails-tp21152426p21156002.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Re: how to make surefire die if a single test fails
Posted by Jaikiran <ja...@yahoo.co.in>.
novotny wrote:
>
>
> Hi,
>
> What maven configuration do I need to do to make maven die
> completely if any test fails?
>
> Thanks, Jason
>
>
As far as i know, that's the default behaviour. Unless you have set the
maven.test.failure.ignore to true
--
View this message in context: http://www.nabble.com/how-to-make-surefire-die-if-a-single-test-fails-tp21152426p21156002.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org