Daily Term: Code Coverage
Code Coverage
Code Coverage measures the percentage of code executed during automated tests, often reported by tools like JaCoCo (Java) or Coverage.py (Python). For example, a report might show that 80% of a project’s lines were executed by tests, highlighting untested areas. Code coverage helps ensure test thoroughness, but high coverage doesn’t guarantee quality—tests might cover code without asserting meaningful behavior, and 100% coverage can be impractical.
Date: 2025-10-18