1.3 DESCRIBE the concepts of test-driven development Flashcards

1
Q

True or False:

Test cases are built after software is written or has been modified to validate the code

A

False

Test cases are built BEFORE code has been written or modified

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

True or False:

Test-driven development (TDD) focuses only on making changes or modifying code that satisfies the goal of the test

A

True

Only what is needed to pass the test gets written, making code simple

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

Step 1 of Test-driven Development

A

Write a test for new code

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

Step 2 of Test-driven Development

A

Test fails

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

Step 3 of Test-driven Development

A

Write code

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

Step 4 of Test-driven Development

A

Test passes

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

Step 5 of Test-driven Development

A

Refactor (clean up) code

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