What is code coverage?
Code coverage is a term used in software testing to describe how much program source code is covered by a test plan. Developers consider the number of program subroutines and lines of code covered by a variety of test resources and techniques.
Code coverage is also known as test coverage.
Development teams can use coverage analysis to ensure that their programs have been tested for errors extensively and should be relatively error-free. Professionals in the software industry have pointed out the obvious advantages of this type of test analysis, namely that code coverage analysis and other test aspects in beta or other development rounds expose bugs to a small test audience rather than millions of users.
Some development environments, e.g. Microsoft Visual Studio, for example, have special menu tools for code coverage analysis. In other cases, developers can use relatively manual methods of mapping the software's source code and determining where the test will be applied. Third-party vendors also offer special code coverage tools for various programming languages.
Experts describe code coverage analysis as part of 'white box testing', a method that examines program code. In some cases, code coverage analysis is mainly done to find the exact areas that are not covered by testing strategies. There are many different technical metrics and parameters that are used to specifically assess code coverage in a given project.