Statement Coverage
What is Statement Coverage?
Statement coverage is a white box testing technique that measures the percentage of executable statements in the source code that have been executed by the test suite.
How It's Calculated
Statement coverage = (Number of statements executed / Total number of statements) × 100
Limitations
While statement coverage ensures every line has run at least once, it does not guarantee that all logical branches (true/false conditions) have been tested — for that, branch coverage is needed as well.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.
.png)