GeeCON Prague 2014*
The moose likes Testing and the fly likes Emma Code Coverage for Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "Emma Code Coverage for Web Application" Watch "Emma Code Coverage for Web Application" New topic
Author

Emma Code Coverage for Web Application

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi Friends,

How can we use Emma in Web Application with eclipse plugin?

Thanks


Poornima Sharma
SCJP 6.0
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30596
    
154

Emma has an Eclipse plugin for running code in a workspace. Emma also allows you to instrument standalone code (like that deployed to a web application) and view the results. I don't know of a way to view those results in Eclipse.


[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
xsunil kumar
Ranch Hand

Joined: Dec 14, 2009
Posts: 133
Download Emma plugin from the internet. Place in your eclipse dropins folder. Restart the eclipse. Emma is used for Generating code coverage report. For this you need to write Junit Test cases.

Write few Junit test cases for you classs. After restarting Eclipse ( after dropping plugin), you can see one icon on eclipse near to debugger icon. Click on that icon, you will get the drop down of your Junit class what you have runned previously.

This will generate code coverage report.

-Sunil
 
GeeCON Prague 2014
 
subject: Emma Code Coverage for Web Application