ExamGecko
Home Home / Scrum / PSD
Question list
Search
Search

Question 45 - PSD discussion

Report
Export

The right time to refactor code using TDD is

A.
After the tests passes
Answers
A.
After the tests passes
B.
When preparing legacy code for unit tests
Answers
B.
When preparing legacy code for unit tests
C.
When I can see the debt building in the code
Answers
C.
When I can see the debt building in the code
D.
After the tests fails
Answers
D.
After the tests fails
Suggested answer: A

Explanation:

You should refactor as soon as possible, but before the tests passes it cannot be refactored, because then it is not esatablished just yet. So it would still be part of the first version if changes would be made then.

asked 23/09/2024
ahmed bin shehab
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first