You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Federico Fernández (JIRA)" <ji...@codehaus.org> on 2008/10/24 14:52:19 UTC
[jira] Commented: (MNG-2142) Forcing execution of the
post-integration-test phase
[ http://jira.codehaus.org/browse/MNG-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151815#action_151815 ]
Federico Fernández commented on MNG-2142:
-----------------------------------------
It's possible to configure the Surefire plugin to continue a build even if it encounters a failure. For example, i have:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>surefire-ut</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<excludes>
<exclude>**/*ITest.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>surefire-it</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<includes>
<include>**/*ITest.java</include>
</includes>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</execution>
</executions>
</plugin>
My Unit Tests ends with Test.java and my Integration Tests ends with ITest.java. When Maven encounters a error in a Integration Test it continue the execution, stopping the server. Hope it helps
> Forcing execution of the post-integration-test phase
> ----------------------------------------------------
>
> Key: MNG-2142
> URL: http://jira.codehaus.org/browse/MNG-2142
> Project: Maven 2
> Issue Type: Improvement
> Components: Integration Tests
> Affects Versions: 2.0.3
> Reporter: Vincent Massol
> Fix For: 3.0
>
>
> The post-integration-test phase needs to always be called even in case of tests failures in the integration-test phase.
> For example when using Cargo the container may be left running if the post-integration-test phase is not called...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira