2. Unit Testing
• Focus on smallest element of software design- modules
• Heavy use of white box testing
• Example
3. Why to test each unit independently?
• Fault isolation and debugging becomes easier
• Exhaustive approach
4. What to test during unit testing
• Module interface
• Local data structure
• Independent paths
• Boundary condition
• Internal logic
• Error handling path
5. • Module interface
Check the correct flow of info
•Local data structure
Intermediated information is maintained
and store properly