Please enable JavaScript.
Coggle requires JavaScript to display documents.
Type of coverage of source code (Statement coverage (check each statement…
Type of coverage of source code
Statement coverage
check each statement is executed
Declarative statements and control flow statements
line coverage
implicit statements
insensitive to boolean operators
focus more on computational statement
Condition Coverage
test checks whether each boolean sub expression has been evaluated
100 % condition coverage not guarantee 100% decision coverage
built in boolean operator
Decision Coverage
branch coverage
ignore branches with boolean expressions involving short circuit operators
test checks whether each decision is executed
Multiple condition coverage
evaluation of structurally complex expressions can be tedious and lead to large no of test cases
all combinations of conditions inside each decision are tested
Condition/Decision Coverage
Modified decision coverage also known as condition determination coverage and multiple decision coverage
MC/DC is both powerful and useful
it is tested if both condition and decision coverage have been satisfied
Path Coverage
test check if each possible path through source code has been executed
path is unique sequence of branches
predicate coverage. Based on predicate logic
Relation of number of path to number of branches is exponential