Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

The 5 steps of TDD: From test cases to refactoring

Sumit Rawal answered on August 25, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Refactoring and other TDD principles

  • The 5 steps of TDD: From test cases to refactoring

    0

    We can view TDD as an iterative cycle with five steps:

    A developer writes a test for a new feature based on specifications.

    The developer runs all existing tests. The newly created test should fail because the code for its feature hasn’t been written yet. This validates that the test was needed.

    The developer writes the simplest code needed to get the test to pass.

    The developer refactors the new code to improve the code’s readability and maintainability.

    The developer repeats the process, eventually collecting new tests for every intended feature of the code. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Aug 25 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.