Branch Coverage
What is Branch Coverage?
Branch coverage (also called decision coverage) is a white box testing technique that measures whether every possible branch (true and false outcome) from each decision point in the code has been executed at least once.
How It's Calculated
Branch coverage = (Number of branches executed / Total number of branches) × 100
Why It's Stronger than Statement Coverage
Branch coverage is a stricter criterion than statement coverage, since it requires both the true and false outcomes of every condition to be tested, catching logic errors that statement coverage alone might miss.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.
.png)