RE: Surefire report not running on test failures

2006-09-08 Thread Andreas Guther
You need to configure surefire to ignore test failures.

Look here for testFailureIgnore:

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

I remember that I have read about a way to have this flag set
dynamically so it is only ignored if you plan to generate reports (I
think Carlos Sanchez has a blog on this).

Andreas



-Original Message-
From: Martin Gilday [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 06, 2006 7:09 AM
To: users@maven.apache.org
Subject: Surefire report not running on test failures

I am trying to generate the HTML report immediately after running tests,
as it seems much easier to locate failures using it rather than the
individual log files.  However when a test failure occurs the report is
not created.
This issue http://jira.codehaus.org/browse/MSUREFIREREP-2 states this
was fixed in 2.0.  I  have tried going back to version 2.0 but still no
success.


  
...

  org.apache.maven.plugins
  maven-surefire-report-plugin
  2.0

...
  


Is this still an outstanding problem?

Regards,
Martin.

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


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



Re: Surefire report not running on test failures

2006-09-06 Thread Maria Odea Ching

Hi Martin,

I've tried using 2.0 and 2.1-SNAPSHOT versions of the plugin and I was 
able to generate a html
surefire report. Was there a build failure when you executed the 
surefire goal?


Thanks,
Odea

Martin Gilday wrote:


I am trying to generate the HTML report immediately after running tests,
as it seems much easier to locate failures using it rather than the
individual log files.  However when a test failure occurs the report is
not created.
This issue http://jira.codehaus.org/browse/MSUREFIREREP-2 states this
was fixed in 2.0.  I  have tried going back to version 2.0 but still no
success.


 
   ...
   
 org.apache.maven.plugins
 maven-surefire-report-plugin
 2.0
   
   ...
 


Is this still an outstanding problem?

Regards,
Martin.

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

 




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