InterviewSolution
| 1. |
What Is Cobertura? |
|
Answer» Cobertura is an OPEN source tool that measures test coverage by instrumenting a code BASE and tracking the percentage of code that are executed as the test suite runs. It is based on jcoverage. In addition to identifying UNTESTED code and locating bugs, Cobertura can optimize code by flagging dead and unreachable code. Cobertura monitors tests by instrumenting the bytecode with extra statements to log which lines are and are not being reached as the test suite executes. It then produces a report in HTML or XML that shows exactly which packages, CLASSES, methods, and individual lines of code are not being tested. Cobertura is an open source tool that measures test coverage by instrumenting a code base and tracking the percentage of code that are executed as the test suite runs. It is based on jcoverage. In addition to identifying untested code and locating bugs, Cobertura can optimize code by flagging dead and unreachable code. Cobertura monitors tests by instrumenting the bytecode with extra statements to log which lines are and are not being reached as the test suite executes. It then produces a report in HTML or XML that shows exactly which packages, classes, methods, and individual lines of code are not being tested. |
|