220 likes | 607 Views
By, Manisha Kundoor. E Cobertura. What is it?. E Cobertura is a Java code coverage reporting tool Free plug-in for Eclipse It is based on Cobertura which is used to measure branch coverage. What is Code Coverage?. Measure used in Software Testing
E N D
By, ManishaKundoor E Cobertura
What is it? • E Cobertura is a Java code coverage reporting tool • Free plug-in for Eclipse • It is based on Cobertura which is used to measure branch coverage
What is Code Coverage? • Measure used in Software Testing • Gives the degree to which the source code is been tested • Various Coverage criteria - Line coverage - Branch coverage - Function coverage - Path coverage
Line Coverage • Identifies which statements in a method or class have been identified • Also known as Statement Coverage Line coverage=(Number of statements exercised/Total number of statements)*100 • Benefit is, it can identify which lines of code have not being covered • Problem is, It cannot identify bugs that arise from control structures
Branch Coverage • Measures which decision outcomes have been tested • 100% line coverage doesn’t mean 100% branch coverage • Branch Coverage even include line coverage
Features of E Cobertura • Line coverage and Branch Coverage can be viewed • Source code is colored according to the coverage results • Colored in green or red depending on whether source code is covered or not
How to Install? Start Eclipse, select Help->Install New Software Use the link - http://ecobertura.johoop.de/update/
How to run? • First run the Test cases of the project
Coverage • The source files are colored according to the coverage results.
Other Coverage tools for Java • Clover • Cobertura • Emma • Jtest • Serenity
References • http://ecobertura.johoop.de/ • http://www.ehow.com/facts_7734917_statement-coverage-vs-branch-coverage.html • http://en.wikipedia.org/wiki/Code_coverage