Re: Running all tests ignoring failures

2008-06-19 Thread Stefan Seidel

Hi,

what always worked was:
mvn ... -Dmaven.test.failure.ignore=true

Stefan

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. 
 
Note: 
1. I tried using the configuration

"true" for the surefire plugin
and it does not run all the tests. 
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. 
 
Thanks, 
Ravi






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Running all tests ignoring failures

2008-06-19 Thread Martin Höller
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
> "true" 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


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


Running all tests ignoring failures

2008-06-18 Thread Balasubramanian, Ravi Shankar
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. 
 
Note: 
1. I tried using the configuration
"true" for the surefire plugin
and it does not run all the tests. 
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. 
 
Thanks, 
Ravi