Friday, October 1, 2010

Maven reporting plugins do not execute if a unit test failure occurs

Programmer Question

None of the plugins in the reporting section of Maven execute if there is a unit test failure.



I found that I can set maven.test.failure.ignore=true here - http://jira.codehaus.org/browse/SUREFIRE-247 The problem to this approach is now our hudson builds are successful even if there are unit test failures.



What I would really like to do is set the reporting plugin maven-surefire-report-plugin to run with the build plugins on a phase but I can't get this to work.



Any idea on how to get the Maven reporting plugins to execute if a unit test failure occurs?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails