Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Emma Code Coverage for Web Application

 
Poornima Sharma
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

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

Thanks

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
xsunil kumar
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic