Test Driven Development (TDD) Flashcards

1
Q

TWIRRR

T = ?

A

Think:

Think about the code that you want to write.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

TWIRRR

W = ?

A

Write a test:

Write a test that proves what you would write.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

TWIRRR

I = ?

A

Implement so that the test passes:

Write the code so that the test passes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

TWIRRR

R = ?

A

Run all unit tests and fix failures:

Run tests written for preexisting parts and fix failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TWIRRR

R = ?

A

Refactor:

Clean up the code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

TWIRRR

R = ?

A

Run all unit tests and fix failures:

Again, run tests written for preexisting parts and fix failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly