You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jeff Jensen (JIRA)" <ji...@codehaus.org> on 2006/05/06 08:00:41 UTC

[jira] Commented: (MPTEST-62) -Dmaven.test.failure.ignore=true has no effect on test failures in second test dir added by

    [ http://jira.codehaus.org/browse/MPTEST-62?page=comments#action_64839 ] 

Jeff Jensen commented on MPTEST-62:
-----------------------------------

Using maven.test.error.ignore=true with maven.test.failure.ignore=true prevented the build failure.  maven.test.error.ignore is an undocumented property that Lukas Theussl shared with me (thanks Lukas!).  The error property is needed due to db connection problems and the failure property is needed because of the dbunit test failing without the connection.

We need test problems to not fail the build for the nightly site gen - regardless of what happens, we want the site generated for the team to use the next day.

The salient point is it is coincidence that the failing test was in the additional source directory.


> -Dmaven.test.failure.ignore=true has no effect on test failures in second test dir added by <preGoal>
> -----------------------------------------------------------------------------------------------------
>
>          Key: MPTEST-62
>          URL: http://jira.codehaus.org/browse/MPTEST-62
>      Project: maven-test-plugin
>         Type: Bug

>     Versions: 1.8
>  Environment: Windows, Maven 1.1 beta 3, test plugin 1.8-snapshot
>     Reporter: Jeff Jensen

>
>
> When adding a second source dir of tests in M1 by adding this to maven.xml:
>   <preGoal name="test:compile">
>     <ant:path
>       id="xxx.dbunit.src.dir"
>       location="${basedir}/src/javatest/db"/>
>     <maven:addPath
>       id="maven.test.compile.src.set"
>       refid="xxx.dbunit.src.dir"/>
>   </preGoal>
> if one of those tests fails, the build fails even with maven.test.failure.ignore=true.

-- 
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