File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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?


Poornima Sharma
SCJP 6.0
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

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.

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

Joined: Dec 14, 2009
Posts: 137
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.

I agree. Here's the link:
subject: Emma Code Coverage for Web Application
It's not a secret anymore!