Code Coverage

Why Trust Techopedia

What Does Code Coverage Mean?

Code coverage is a term used in software testing to describe 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.

Advertisements

Code coverage is also known as test coverage.

Techopedia Explains Code Coverage

Using code coverage analysis, development teams can provide reassurance that their programs have been broadly tested for bugs and should be relatively error-free. Professionals in the software industry have pointed out the evident benefits of this kind of testing analysis, namely, that including code coverage analysis and other testing aspects in beta or other development rounds exposes bugs to a small test audience, rather than to millions of users when products finally go live.

Some development environments such as Microsoft Visual Studio have specific menu tools for doing code coverage analysis. In other cases, developers may use relatively manual methods that involve mapping out the software source code and determining where testing applies. Third-party vendors also provide specific code coverage tools for different programming languages.

Experts describe code coverage analysis as a part of "white box testing," a method that examines program code. In some cases, code coverage analysis is done mostly to find the precise areas that are not covered by testing strategies. There are many different technical metrics and parameters used to specifically assess code coverage in a given project.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.