Scrum
PSD · Question #168
PSD Question #168: Real Exam Question with Answer & Explanation
The correct answer is D. Write the code to satisfy the test. In TDD you start with writing the test before the code. This test cannot pass. If it does, the test is wrong. When the tests are written, the production code to satisfy the test will be written. Once all the tests succeeds, the product code is done.
Question
What is the step to take in TDD after the tests have failed?
Options
- AMeet with the team to see why it fails
- BChange the test in a way that is passes
- CRun it again to verify it fails.
- DWrite the code to satisfy the test
Explanation
In TDD you start with writing the test before the code. This test cannot pass. If it does, the test is wrong. When the tests are written, the production code to satisfy the test will be written. Once all the tests succeeds, the product code is done.
Community Discussion
No community discussion yet for this question.