1/5
Looks like no tags are added yet.
What does coverage tell you?
Which lines, branches, or paths were executed by tests
What does coverage NOT tell you?
It does not tell you whether the expected result came from the requirements or whether the assertions were strong. Best used to find missing code after you already designed black box tests from contracts
Line coverage asks…
Did each executable line run at least once?
Branch coverage asks…
Did each decision run through its true and false case
Path thinking asks…
Can we choose inputs that exercise important combinations of decisions?
What makes a test good?
A test must be focused, independent, deterministic, readable, rooted in black-box/whitebox testing, and capable of failing