Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Code coverage with HTML Utits  RSS feed

 
Prags Desai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.

Thanks
-Pragati
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pragati,
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!