| Author |
Evaluating code coverage
|
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
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
|
Groovy
|
 |
Vijay Vaddem
Ranch Hand
Joined: Feb 13, 2004
Posts: 243
|
|
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
Joined: Dec 29, 2005
Posts: 308
|
|
i quite like Clover. it offers your wanted features. if you use it for non commercial purposes it is free.
|
aldana software engineering blog & .more
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
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
Joined: Feb 13, 2004
Posts: 243
|
|
Originally posted by Pradip Bhat: Thanks guys. Vijay, Does EMMA support the features that you listed ?
Unfortunately ... NO...
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
The core requirements for most projects can probably be picked from the following list: Ant integrationMaven integrationReporting (global statistics, per-package statistics, per-class statistics, per-line coverage highlighting, etc.)IDE integration
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
Thanks. Can you recommens some open source tools ?
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
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
Joined: Feb 27, 2002
Posts: 8876
|
|
|
Thanks
|
 |
 |
|
|
subject: Evaluating code coverage
|
|
|