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/05 18:07:41 UTC

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

-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


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

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPTEST-62?page=all ]
     
Lukas Theussl closed MPTEST-62:
-------------------------------

     Assign To: Lukas Theussl
    Resolution: Won't Fix

Thanks for the update Jeff!
The maven.test.error.ignore property has only been added in version 1.8 of the test plugin which is not released yet (I will do it this weekend!). That's why it's not documented yet on the official web page.

> -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
>     Assignee: Lukas Theussl

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


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

Posted by "Jeff Jensen (JIRA)" <ji...@codehaus.org>.
    [ 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