You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guy Rixon <gt...@ast.cam.ac.uk> on 2005/12/10 15:47:59 UTC
Building without unit tests
Hi,
is there some way to build the principal artifact of a project without also
running the unit tests?
In our development process, running and assessing the unit tests is one stage
and building the artifact is a separate stage. When we do the build it saves a
lot of time not to have to re-run the tests. One of our projects takes over
half an hour to grind through its tests.
If this is not current possible, could it be supported in later versions of
the appropriate plug-ins?
Cheers,
Guy
Guy Rixon gtr@ast.cam.ac.uk
Institute of Astronomy Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building without unit tests
Posted by Brill Pappin <jo...@gmail.com>.
I'm not sure it does to the exact same thing but if they feature is
removed without replacement I'll be complaining very loudly :)
So far I'm finding the new POM a little heavy and not as easy to use
as the old maven.xml file, but the functionality is still there for
the most part.
- Brill Pappin
On 12/12/05, Arnaud Bailly <ab...@norsys.fr> wrote:
> Think you are right of course. I didn't know the old behavior of
> Maven1.x was preserved in Maven 2.0
Re: Building without unit tests
Posted by Arnaud Bailly <ab...@norsys.fr>.
Brill Pappin wrote:
> wouldn't that cause the tests to never fail the build?
> I think what he wants is to be able to easily switch the tests off.
>
> I do this myself when I'm working on UI stuff that the tests don't
> check and I don't want to have to run though all the tests simply to
> deploy a new HTML file.
>
>
> - Brill Pappin
>
Think you are right of course. I didn't know the old behavior of
Maven1.x was preserved in Maven 2.0
Regards
--
Arnaud Bailly - Ingénieur de Recherche
NORSYS
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building without unit tests
Posted by Brill Pappin <jo...@gmail.com>.
wouldn't that cause the tests to never fail the build?
I think what he wants is to be able to easily switch the tests off.
I do this myself when I'm working on UI stuff that the tests don't
check and I don't want to have to run though all the tests simply to
deploy a new HTML file.
- Brill Pappin
On 12/10/05, Arnaud Bailly <ab...@norsys.fr> wrote:
> Hi,
> In Maven2, this is done by configuring the surefire plugin:
>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <testFailureIgnore>true</testFailureIgnore>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
>
> Hope it helps.
>
> --
> Arnaud Bailly - Ingénieur de Recherche
> NORSYS
> 1, rue de la Cense des Raines
> ZAC du Moulin
> 59710 ENNEVELIN
> Tel : (33) 3 28 76 56 76
> Fax : (33) 3 28 76 57 00
> Web : http://www.norsys.fr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Building without unit tests
Posted by Arnaud Bailly <ab...@norsys.fr>.
Hi,
In Maven2, this is done by configuring the surefire plugin:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Hope it helps.
--
Arnaud Bailly - Ingénieur de Recherche
NORSYS
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building without unit tests
Posted by Guy Rixon <gt...@ast.cam.ac.uk>.
That's exactly what I was after. Thanks.
On Sat, 10 Dec 2005, Ian Vellosa wrote:
>
> Guy,
>
> You can run your maven build like this
>
> %> mvn -Dmaven.test.skip=true install
>
> where the test phase is skipped. Is that of any help?
>
> Cheers
> IV
>
> --- Guy Rixon <gt...@ast.cam.ac.uk> wrote:
>
> > Hi,
> >
> > is there some way to build the principal artifact of a project
> > without also running the unit tests?
> >
> > In our development process, running and assessing the unit
> > tests is one stage and building the artifact is a separate
> > stage. When we do the build it saves a lot of time not to have
> > to re-run the tests. One of our projects takes over half an
> > hour to grind through its tests.
> >
> > If this is not current possible, could it be supported in later
> > versions of the appropriate plug-ins?
> >
> > Cheers,
> > Guy
> >
> > Guy Rixon gtr@ast.cam.ac.uk
> > Institute of Astronomy Tel: +44-1223-337542
> > Madingley Road, Cambridge, UK, CB3 0HAFax: +44-1223-337523
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Guy Rixon gtr@ast.cam.ac.uk
Institute of Astronomy Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building without unit tests
Posted by Ian Vellosa <ve...@btopenworld.com>.
Guy,
You can run your maven build like this
%> mvn -Dmaven.test.skip=true install
where the test phase is skipped. Is that of any help?
Cheers
IV
--- Guy Rixon <gt...@ast.cam.ac.uk> wrote:
> Hi,
>
> is there some way to build the principal artifact of a project
> without also running the unit tests?
>
> In our development process, running and assessing the unit
> tests is one stage and building the artifact is a separate
> stage. When we do the build it saves a lot of time not to have
> to re-run the tests. One of our projects takes over half an
> hour to grind through its tests.
>
> If this is not current possible, could it be supported in later
> versions of the appropriate plug-ins?
>
> Cheers,
> Guy
>
> Guy Rixon gtr@ast.cam.ac.uk
> Institute of Astronomy Tel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HAFax: +44-1223-337523
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org