wood burning stoves 2.0*
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Emma Code Coverage for Web Application
 
Similar Threads
Getting Logging jar is sealed Error
Server Side code coverage for ejb session beans
Access database from a class file
How to run Jboss under Emma to find code coverage
third party tool for junit test case checking