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.75–3 hours total)
- Read the following in Software Engineering:
- Chapter 8: Software testing
(60–75 minutes)
- Development testing
- Chapter 8: Software testing
(60–75 minutes)
- Watch the following videos about unit testing:
(28 minutes total)
- Unit Testing Overview and Anti-Patterns (3 minutes)
- Black Box Unit Testing (2 minutes)
- White Box Unit Testing (2 minutes)
- Unit Test Coverage (3 minutes)
- Measuring Complexity and Strict Cyclomatic Complexity SCC / CC2 (5 minutes)
- MCDC Coverage and Example (7 minutes)
- Unit Testing Coverage Strategies (3 minutes)
- Best Practices for Unit Testing (3 minutes)
- Complete the handout (15 minutes)
- Participate in the synchronous session during the class meeting time (optional)
- Complete the quiz (5–8 minutes)
- Complete the project sprint
(60 minutes)
- Review others’ changes
- Respond to feedback on the implementation
- Hold a retrospective with your team
Due
As a reminder, the following are due this lesson: