Hi Ravi!

On Thursday 19 June 2008 Balasubramanian, Ravi Shankar wrote:
> Hi all,
>       I need a way in maven (using the surefire-plugin) to run all tests
> in a project ignoring any test failures that might occur. All my tests
> are independent of each other and i want all the tests to be run
> ignoring any failures that might happen in the middle.

"testFailureIgnore" for surefire is supposed to do what you need. See it's 
documentation [0] for details.

> Note:
> 1. I tried using the configuration
> "<testFailureIgnore>true</testFailureIgnore>" for the surefire plugin
> and it does not run all the tests.

If it does not, it is a bug. Are you using the latest version? Try to build 
a very basic sample project and file a JIRA issue [1].

> 2. I dont see any consistent behavior as well. Sometimes, it skips all
> the tests after 5 failures and sometimes it skips all the tests after
> 6-7 failures. I am not able to observe any consistent behavior.

It's not supposed to skip any test, just to ignor their results.

hth,
- martin

[0] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
[1] http://jira.codehaus.org/browse/SUREFIRE

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to