← All courses
IND 512 · 2 credits
Testing & Debugging
Write tests that catch bugs before users do, and debug with a method instead of guesswork. You will build assert-based tests from scratch, practice test-driven development, learn what mocks really are, read stack traces like prose, and finish by testing and fixing a genuinely buggy module.
Your progress0/29 lessons · 0%
What you'll learn
- ✓Write clear, focused unit tests with arrange, act, assert structure and honest names
- ✓Discover edge cases systematically and hunt down off-by-one errors with boundary tests
- ✓Practice the red, green, refactor TDD loop and know when it pays off
- ✓Isolate code under test using fakes, stubs, and mocks, and explain the difference
- ✓Debug with a hypothesis-driven loop: reproduce, isolate by halves, fix, and prove the fix
- ✓Read any Python stack trace bottom-up and translate it into a plain-language diagnosis