Code COverage
Code COverage
Software Testing
Code Coverage Testing:
Done by Developer
White Box Testing
helps in determining how much code of the source is tested which
helps in accessing quality of test suite and analyzing how
comprehensively a software is verified.
Code Coverage metric helps in determining the performance and
quality aspects of any software.
code coverage analysis various criteria
1. Statement Coverage/Block coverage:
The number of statements that have been successfully executed in the program
source code.
Statement Coverage = (Number of statements executed)/(Total Number of
statements)*100.
The number of decision control structures that have been successfully executed in
the program source code.
Function coverage :
The number of functions that are called and executed at least once in the source
code.
Function Coverage = (Number of functions called)/(Total number of
function)*100.
Condition Coverage/Expression Coverage :
The number of Boolean condition/expression statements executed in the
conditional statement.
Condition Coverage =(Number of executed operands)/(Total Number of
Operands)*100.