[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Re: Maven surefire plugin - testFailureIgnore and its behaviour with
From:       Paul Gier <pgier () redhat ! com>
Date:       2009-03-30 14:08:33
Message-ID: 49D0D261.3080808 () redhat ! com
[Download RAW message or body]

As far as I know, it's not expected behaviour.  If you can create a jira issue 
with a sample project to reproduce this, I'm sure someone can take a look.

Also, try version 2.4.3 since that is the latest.

Jaikiran wrote:
> I am using Maven surefire plugin 2.4.2 with the following configurations:
> 
> <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           ...
>           <testFailureIgnore>false</testFailureIgnore>
>           ...
>           <forkMode>always</forkMode>
>           ...
>         </configuration>
> </plugin>
> 
> 
> I have intentionally set testFailureIgnore=false (i.e. the default value),
> so that if the test fails the build process fails. However when my tests
> fail with ERROR, i see that irrespective of this property value, the rest of
> the build is carried out and the build reports a SUCCESS.
> 
> A bit of debugging and playing with the forkMode, shows that the
> testFailureIgnore=false results in the build to fail (which is what i
> expect) *only* when the forkMode is set to "never". Setting the forkMode to
> always or once always results in a successful build irrespective of the
> testFailureIgnore setting.
> 
> Is this the expected behaviour?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic