- In this lecture we will use the source code itself for testing.
- Using the source code as a way to guide the testing, are called structural testing techniques
- Test Coverage
Why do we need structural testing?
- To systematically derive tests from source code
- To know when to stop testing
Different coverage types
- Line Coverage
- Control Flow Graphs
- Block Coverage
- Branch/ Decision Coverage
- Basic Condition Coverage
- Branch+ Condition Coverage
- Path Coverage
- MC/DC (Modified Condition/Decision Coverage)
Lazy vs Eager Operators
- Lazy operators : && and ||
- Now you might get options with a 'dc' → Don't care.