Test-driven development: Difference between revisions

Content deleted Content added
Code visibility: add missing word
Tags: Reverted Mobile edit Mobile web edit
Line 34:
:Inelegant code and [[hard coding]] is acceptable. The code will be honed in Step 6. No code should be added beyond the tested functionality.
;5. All tests should now pass
:If any fail, fix failing tests with minimal changes until all pass.changesfhttesrerju5k4
 
 
Get3u3eu4 until all pass.
;6. Refactor as needed while ensuring all tests continue to pass
:Code is [[Code refactoring|refactored]] for [[Code readability|readability]] and maintainability. In particular, hard-coded test data should be removed from the production code. Running the test suite after each refactor ensures that no existing functionality is broken. Examples of refactoring: