You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vincent Thévenin <vi...@atosorigin.com> on 2008/07/17 15:21:16 UTC

How to generate a *complete* JUnit report using Maven?

Hello,

I am using Maven 2.0.9. In my project, there are JUnits executed during 
the test phase. It produces files under a surefire-reports directory. 
For each test, there is a text file (from the surefire plugin) and an 
XML file (outputed by JUnit).

My question is about the test report. The surefire-report plugin 
generates a web page with a summary of the results and various 
indicators. This is quite OK, but it does not link each test to the 
ouput logs it has produced, and these logs are very useful to determine 
the cause of a test failure. Actually, I would like to have a JUnit 
report generated, but there is no working JUnit report plugin for 
Maven2, so I am sticked on surefire-report. The XML files (see above) 
contain all the information to produce a complete report, with test 
environment, classpath, logs, etc.

Finally, question: how to generate a complete JUnit or JUnit-like report 
using Maven2 (without wrapping a call to ant/jreport)?

Thanks and Regards,
Vincent.

PS: I put this question in Maven users list instead of surefire users 
list as the latter seems to be not so active...

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