File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 29220
    
135

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get junit result in html?
 
Similar Threads
Writing an application class?
Named TestSuite gives error in JUnit_4.1 used w/Eclipse
can we write junit testcase for any java class?
JUnit and DAO
In order to run junit 4.8.2 in maven do we need to have the folder src/test/java?