code_coverage
This is an old revision of the document!
Table of Contents
Sources:
- Software Testing course at ITMO university by Kochubeev Nikolay Sergeevich
Code coverage
Code coverage is a metric for software testing that shows what percentage of the source code is tested.
Criteria
Percentage is calculated as (items tested/items found).
- function coverage;
- statement coverage;
- branches coverage;
- condition coverage;
- line coverage.
Best practices
- Use mutation testing and code coverage together. Good code coverage does not equal good tests.
- 100% coverage does not guarantee good code quality, you do not have to chase after it.
code_coverage.1757487447.txt.gz · Last modified: by plida
