Everything About ___
Live briefing

Everything about Code coverage

Metric for source code testing

In software engineering, code coverage, also called test coverage, is a percentage measure of the degree to which the source code of a program is executed when a particular test suite is run. A program with high code coverage has more of its source code executed during testing, which suggests it has a lower chance of containing undetected software bugs compared to a program with low code coverage. Many different metrics can be used to calculate test coverage. Some of the most basic are the percentage of program subroutines and the percentage of program statements called during execution of the test suite. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Code coverageA 5-minute orientation
  2. Skim a recent paper: Code-Aware Prompting: A Study of Coverage-Guided Test Generation in Regression Setting using LLMInfluential work since 2022
  3. Pick up a classic book: Reviewing the artsThe most-reprinted book on the subject
  4. Read the landmark paper: A family of code coverage-based heuristics for effective fault localizationCited 194 times
  5. Go sideways: Modified condition/decision coverageA closely related topic
  6. Go sideways: Linear code sequence and jumpA closely related topic

📖 Definitions

Noun A measure of the degree to which the source code of a program is executed when a particular test suite is run.

🗂️ The subject at a glance

  1. Coverage criteria
  2. In practice
  3. Usage in industry

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics