What is TDD? (Test Driven Development)
The tests are written before the code itself
TDD Goals
Know when something breaks and where
Know that the whole system works correctly
Workflow:
Chose something to work on
Build it based on specifications
Test it with small scripts
Workflow WITH TDD:
Chose something to work on
Write tests that would pass if products work
Keep building until all tests pass
The results are the same regardless of method - TDD forces you to prioritize tasks
Last updated