Thanks Martin, that was it.

Now my problem is the following. I execute the install target, but, if any test fails, I wouldn't like my repository to store the generated artifact and, as you can imagine, the artifact is installed. How can I deal with this?

Thanks again.

Martin Höller escribió:
On Friday 11 July 2008 Carlos Alonso wrote:
Hi All.

I'm using Hudson integration environment and I've recently migrated my
scripts from ant to maven. Using ant, when some test cases failed, the
build was set to unstable and a test-results report was raised
indicating which tests failed and why. The problem is that using maven,
the build process is much simpler and maintainable, but, when some test
case fails, the whole build process fails.

Any tip to solve the situation?

I guess you are using the maven-surefire-plugin, are you?

Try setting the parameter testFailureIgnore to true in your module configuration, as explained on [0].

hth,
- martin

[0] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html


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

Reply via email to