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
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
3
Q
Step 1 of Test-driven Development
A
Write a test for new code
4
Q
Step 2 of Test-driven Development
A
Test fails
5
Q
Step 3 of Test-driven Development
A
Write code
6
Q
Step 4 of Test-driven Development
A
Test passes
7
Q
Step 5 of Test-driven Development
A
Refactor (clean up) code