Activity 01
Bug Hunt: Find the Defects
Provide students with a short program (20-30 lines) that has three intentionally planted bugs covering different bug types: a logic error, an off-by-one error, and an edge case failure. Pairs write test cases designed to expose each bug, run them, and report which tests caught which defects.
Explain the importance of comprehensive software testing in the development cycle.
Facilitation TipDuring Bug Hunt, circulate and ask students to explain how they identified each defect, reinforcing the difference between crashing errors and silent logic failures.
What to look forStudents exchange test plans for a partner's capstone project. They should identify: Are there at least three distinct test cases for a core feature? Are expected outcomes clearly defined for each case? Provide one suggestion for an additional test case.