aspose file tools
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

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
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: 32088

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Code coverage with HTML Utits