Posts

Showing posts from January, 2011

Introduction to Unit Testing

Unit Testing Unit is a smallest program or component in the application. Using Low Level Design (LLD) document, developer verifies following factors in Unit Test. (a) Statement Coverage:- Verifying all the statements are participating (or not) at least once during execution time. (b) Loop Coverage:- Verifying loops are terminating properly or not (c) Program Technique Coverage:- Verifying developers have used right techniques or not to achieve expected performance. (d) Output Coverage:- Verify correctness of output value (e) Cyclomatic Complexity:- It is a metric to measure number of independent path to perform one operation.