1 / 18

E Cobertura

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

geona
Download Presentation

E Cobertura

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. By, ManishaKundoor E Cobertura

  2. 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

  3. 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

  4. 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

  5. Branch Coverage • Measures which decision outcomes have been tested • 100% line coverage doesn’t mean 100% branch coverage • Branch Coverage even include line coverage

  6. 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

  7. How to Install? Start Eclipse, select Help->Install New Software Use the link - http://ecobertura.johoop.de/update/

  8. How to run? • First run the Test cases of the project

  9. For Branch coverage, cover the project as

  10. How to view?

  11. Branch Coverage:

  12. Coverage • The source files are colored according to the coverage results.

  13. Other Coverage tools for Java • Clover • Cobertura • Emma • Jtest • Serenity

  14. References • http://ecobertura.johoop.de/ • http://www.ehow.com/facts_7734917_statement-coverage-vs-branch-coverage.html • http://en.wikipedia.org/wiki/Code_coverage

  15. Questions?

  16. Thank you !

More Related