Test Driven Development (TDD) Flashcards
1
Q
TWIRRR
T = ?
A
Think:
Think about the code that you want to write.
2
Q
TWIRRR
W = ?
A
Write a test:
Write a test that proves what you would write.
3
Q
TWIRRR
I = ?
A
Implement so that the test passes:
Write the code so that the test passes.
4
Q
TWIRRR
R = ?
A
Run all unit tests and fix failures:
Run tests written for preexisting parts and fix failures.
5
Q
TWIRRR
R = ?
A
Refactor:
Clean up the code.
6
Q
TWIRRR
R = ?
A
Run all unit tests and fix failures:
Again, run tests written for preexisting parts and fix failures.