Overview - Why coverage measures test completeness
What is it?
Coverage is a way to check how much of your code is tested by your tests. It measures which parts of the code run when tests are executed. This helps you see if some code is never tested. Coverage gives a number or report showing how complete your tests are.
Why it matters
Without coverage, you might miss testing important parts of your code. This can cause bugs to hide and appear later in real use. Coverage helps you find untested code so you can add tests and make your software safer and more reliable.
Where it fits
Before learning coverage, you should know how to write basic tests using pytest. After coverage, you can learn about test quality, mutation testing, and continuous integration to improve your testing process.