Overview
Teaching: 15 min
Exercises: 10 minQuestions
How can I tell if my program is working?
How can I tell if my program is still working?
Objectives
Write and run unit tests using
py.test
.Turn a bug into a test case that verifies the fix to the bug.
FIXME
Key Points
Use unit testing framework to run tests repeatedly.
Write unit tests to clarify design and make future development faster.
Turn bugs into tests.