Tuesday, 30 June 2020

What is Code Coverage?

Code Coverage is a White Box Testing technique used to determine lines of code successfully validated.It helps to determine which lines of code are never executed.It is a dynamic white box testing as access to the code is made available.
The different types of Code Coverage analysis includes :
1.Statement Coverage.
2.Branch Coverage.
3.Condition Coverage.

1.Statement Coverage :
The most simplest form of code coverage is statement coverage or line coverage.Here we ensure that every statement is executed at least once during testing.100% statement coverage can be misleading at times as it does not ensure that your program is tested completely.

2.Branch Coverage :
It is also called as Path Testing.Here we try to cover all the paths in the software to ensure the program is tested completely.

3.Condition Coverage :
Condition coverage takes into account multiple conditions to be tested to ensure that the program is tested completely.


 The different code coverage tools are :

1.CodeCover.
2.OpenCover
3.JCov
4.EMMA

No comments:

Post a Comment