In the test-driven development (TDD) model, after a test fails, the next step is to change the code to make the test pass. TDD involves writing a test for a new feature or functionality, running the test to see it fail, then writing the minimal amount of code necessary to pass the test, and finally refactoring the code to meet quality standards.
[Reference: Cisco DevNet Associate documentation on software development methodologies, which outlines the TDD process and emphasizes the importance of changing the code after a test failure., ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit