Code Coverage | Glossary

Definition:

Code coverage is a term used in software testing to explain how much program source code is covered by a testing plan. Developers look at the number of program subroutines and lines of code that are covered by a set of testing resources and techniques.

Code Coverage testing is determining how much code is being tested. It can be calculated using the formula:

Code Coverage = (Number of lines of code exercised)/(Total Number of lines of code) * 100%

Following are the types of code coverage Analysis:

  • Statement coverage and Block coverage
  • Function coverage
  • Function call coverage
  • Branch coverage
  • Modified condition/decision coverage

Further Reading:

Book: Agile Testing by Janet Gregory and Lisa Crispin.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.