File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes Code coverage with HTML Utits Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Code coverage with HTML Utits" Watch "Code coverage with HTML Utits" New topic

Code coverage with HTML Utits

Prags Desai

Joined: May 04, 2004
Posts: 5
I am using HTMLUnit for unit testing my web application.
I wanted to know if there is any way we can get code coverage with it.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

You could use a tool like Emma to instrument anything that is run on the server. If you start it right before HTMLUnit runs and look at the result right after to get the HTMLUnit part of the results.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Code coverage with HTML Utits
It's not a secret anymore!