Other alternatives:

1) add -Dmaven.test.failure.ignore=true to your mvn command line.

2) use a profile

<profiles>
   <profile>
     <id>site-generation</id>
     <properties>
       <maven.test.failure.ignore>true</maven.test.failure.ignore>
     </properties>
   </profile>
 </profiles>

While you can certainly configure the surefire plugin in your pom as Tung
suggests this has the potentially negative effect of making you think your
build is succeeding when in truth it's failing.

I like being REALLY explicit when using either maven.test.failure.ignore or
maven.test.skip to effect builds.

Doug



On 8/3/06, Tung Nguyen <[EMAIL PROTECTED]> wrote:

You can configure the surefire plugin like this

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                    <testFailureIgnore >true</testFailureIgnore >
             </configuration>
</plugin>

HTH

Tung Nguyen

----- Original Message ----
From: Jon SlinnHawkins <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, August 3, 2006 10:18:31 AM
Subject: SureFire (and surefire-reports) plugins

Hi All,

Is there any way of stop a failed surefire unit from immediatley failing a
maven build, and allowing it to go on to create the report using the
surefire-report plugin.  Then, after the reports hasve been created fail
the
build.

I want to see reports of failed tests....

Is this possible... Can you switch off halt-on-failure for the Surefire
plugin, and switch it on for the report plugin ?

Thanks

Jon




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







Reply via email to