you may have to override the default phases, disable surefire (as you
cannot unbind from lifecycle), and change the includes pattern for failsafe
to the surefire one.
if you do the above, should have no side effects other than your intended
as they both use the same back end
- Stephen
---
Sent
Although I did see your answer, I did not understand how failsafe was
resolving the problem, I do now.
Cheers,
Guillaume
Le 10/01/2012 19:19, Stephen Connolly a écrit :
given that nobody else bothered to read the original question, it does not
surprise me that nobody bothered to read my
Hello,
I would like to know if there is a way to execute a goal when there is test
failures?
Since maven stops its execution (fail fast mode) after encountering a test
failure, is there any options to launch a goal between that test failure
and he stop of maven?
Regards,
Xavier.
On Tuesday 10 January 2012 Xavier S. wrote:
Hello,
I would like to know if there is a way to execute a goal when there is
test failures?
Use mvn -DskipTests.
You can also try mvn -Dmaven.test.skip=true, which is a bit longer and not
only skips test execution but also skips test compilation.
you'd need to do something like failsafe, where the execution is
separated from the checking and failing the build might even get
what you want using just failsafe
On 10 January 2012 13:05, Xavier S. xavier.seign...@gmail.com wrote:
Hello,
I would like to know if there is a way to execute
You can configure the maven surefire plugin to ignore errors (not the
default). Look at the Maven Surefire plugin documentation.
Regards
Jeff MAURY
-- Forwarded message --
From: Xavier S. xavier.seign...@gmail.com
Date: Tue, Jan 10, 2012 at 2:05 PM
Subject: How to run a maven
You can just skip the test.
To do so you have multiple solution.
Comment out all you test which could be long and error prone.
Remove them from you testSuite, which dependly hardly on your plateform.
And pass a special command to maven
http://maven.apache.org/general.html#skip-test
Or you can
Thanks for all your answers, but I think I should re explain my need.
I don't want to skip the tests. The default fail fast mode of maven suits
me (section 6.1.8
http://www.sonatype.com/books/mvnref-book/reference/running-sect-options.html
).
I just want to run my custom mojo just after my tests
what about
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore
Jeff MAURY
On Tue, Jan 10, 2012 at 4:55 PM, Xavier S. xavier.seign...@gmail.comwrote:
Thanks for all your answers, but I think I should re explain my need.
I don't want to skip the tests. The
Tell me if I am wrong Xavier, but I think that what he would like to do
is perform something special when the tests fail, not just skip them or
not fail the build. My guess would be that he is expecting some kind of
on failure/on tests failure phase where he could attach other maven
plugins to
Thanks Guillaume!
That's exactly what I want to do.
So people, any idea?
Regards,
Xavier
2012/1/10 Guillaume Polet guillaume.po...@gmail.com
Tell me if I am wrong Xavier, but I think that what he would like to do is
perform something special when the tests fail, not just skip them or not
use failsafe.
parse the failsafe results yourself... if they show a test failure, do your
special thing then let failsafe verify stop the build
- Stephen
---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to
given that nobody else bothered to read the original question, it does not
surprise me that nobody bothered to read my original answer of using
failsafe ;-)
- Stephen
---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of
Hello,
I would like to know if there is a way to execute a goal when there is test
failures?
Since maven stops its execution (fail fast mode) after encountering a test
failure, is there any options to launch a goal between that test failure
and he stop of maven?
Regards,
Xavier.
- One has to write custom goal and attach to the test phase of maven
build life cycle. Goal checks if test failure and do the action.
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
Regards,
Yuvaraj
-Original Message-
From: Xavier S.
:)
Sorry, I missed your answer in the noise! I'll give it a try and let you
know. (I hope it won't have side effects using failsafe rather than
surefire).
Regards,
Xavier
2012/1/10 Stephen Connolly stephen.alan.conno...@gmail.com
given that nobody else bothered to read the original question,
I'm not sure it will work since when there is test failures the test phase
is not executed completely and stops on the failing goal within that phase.
Regards,
Xavier
2012/1/11 Yuvaraj Vanarase yuvaraj.vanar...@synechron.com
- One has to write custom goal and attach to the test phase
17 matches
Mail list logo