Skip to content
Bugwise
Menu

Branch coverage

Also called: Decision coverage

The percentage of decision outcomes (each true and false exit of an if) taken by the tests.

Definition

Branch coverage is stronger than statement coverage: every if needs at least one test that goes each way.

In practice

An 'if member' check needs one test with a member and one without for full branch coverage.

Related terms

Esc

Type to search the whole site.