Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Evaluating code coverage

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am evaluating code coverage tool. can someone help me in listing the features that I should be looking at.

1. Good Reporting like listing uncovered lines etc
2. Integration with Eclipse,JUnit
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:
I am evaluating code coverage tool. can someone help me in listing the features that I should be looking at.

1. Good Reporting like listing uncovered lines etc
2. Integration with Eclipse,JUnit


We use Emma code coverage tool in our organization.
Though this open source tool covers most of our requirements,

I suggest you check for some of the following features in your evaluation tool :

1. If Ant task is supported, ensure that there is a task which would break the build if the statictics are below the expected value.

2. Better summary page: We run this tool to know and identify the classes with less coverage. If you run into 1000 of files spread across multiple packages, it's a pain to go through each and every package and check for the coverage data. If your tool provides a summary page which list all the
classes which are falling below expected value, it makes things much easier...
 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i quite like Clover. it offers your wanted features.

if you use it for non commercial purposes it is free.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys.

Vijay,
Does EMMA support the features that you listed ?


manuel,
Thanks. If the clover is used for my daily builds does it become commercial use?
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:
Thanks guys.

Vijay,
Does EMMA support the features that you listed ?



Unfortunately ... NO...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The core requirements for most projects can probably be picked from the following list:
  • Ant integration
  • Maven integration
  • Reporting (global statistics, per-package statistics, per-class statistics, per-line coverage highlighting, etc.)
  • IDE integration

  •  
    Pradeep bhatt
    Ranch Hand
    Posts: 8933
    Firefox Browser Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks. Can you recommens some open source tools ?
     
    Lasse Koskela
    author
    Sheriff
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by Pradip Bhat:
    Can you recommend some open source tools?

    Cobertura and EMMA are the most popular, according to my perspective of the world.
     
    Pradeep bhatt
    Ranch Hand
    Posts: 8933
    Firefox Browser Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic