Skill 6.2.7

Coverage analysis

Key Concepts

Code coverage metrics include statement, branch, condition, function and loop coverage, calculated as the share of items exercised by tests. Requirements coverage checks that every requirement, including security requirements, has tests.

High coverage does not prove the absence of flaws, but low coverage shows that untested code may hide them.