Testing II
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it? (Kernighan and Plauger 1978)
Learning Objectives
- Contrast black box and white box testing
- Calculate cyclomatic complexity and create test cases for each basis path
- Organize tests in order of coverage
- List strategies for debugging
How to Complete this Lesson
Complete the following learning activities: (2–2.25 hours total)
- Read the following in Software Engineering:
- Chapter 8: Software testing
(60–75 minutes)
- Development testing
- Chapter 8: Software testing
(60–75 minutes)
- Attend the class meeting
(60 minutes)
- Complete the handout (after class if necessary)
Due
As a reminder, the following is due this lesson:
Resources
Videos
- Unit Testing Overview (3 minutes)
- Black Box Unit Testing (2 minutes)
- White Box Unit Testing (2 minutes)
- Unit Testing Coverage (3 minutes)
- Measuring Complexity and Strict Cyclomatic Complexity (SCC) (5 minutes)
- MCDC Coverage as White Box Example and Example (7 minutes)
- Unit Testing Coverage Strategies (3 minutes)
- Best Practices for Unit Testing (3 minutes)