1 Test Driven Development (TDD)
1.1 what is "test first" ?
- write a test (it fails)
- write the implementation (test still fails)
- fix the implementation
- test passes: you're done!
1.2 what is "TDD" ?
- Q: what should the program do?
- A: integration test. (write it. it fails)
- Q: how should the program do it?
- A: unit test. (write it. it fails)
- implement the unit
- does the unit test pass? if not, got back to 5
- does the integration test pass? if not, go back to 3