wood burning stoves 2.0*
The moose likes Testing and the fly likes How to get junit result in html? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to get junit result in html?" Watch "How to get junit result in html?" New topic
Author

How to get junit result in html?

Supriya Kaledhonkar
Greenhorn

Joined: Apr 14, 2008
Posts: 5
Hi

I need to create a servlet to combine all my testcases and display the junit test results on html page.
How do I do this?

Thanks,
Supriya
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

Supriya,
Can you use Ant or have your servlet call an Ant task? If so, the junitreport task does just this.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Uli Hofstoetter
Ranch Hand

Joined: Nov 24, 2006
Posts: 57
Originally posted by Jeanne Boyarsky:
Supriya,
Can you use Ant or have your servlet call an Ant task? If so, the junitreport task does just this.


The maven surefire report plugin also does the job.
[ May 29, 2008: Message edited by: Uli Hofstoetter ]

SCEA5, Certified ScrumMaster
 
jQuery in Action, 2nd edition
 
subject: How to get junit result in html?