What are the effects of TDD - Development time/Quality

  • We want to implement TDD with the transformation to microservice architecture and use other technologies like cloud.

    But now we are wonder how TDD will affect our development time.

    It's important for the pm office. Is there a use case, paper, etc. that you can suggest like this paper?

  • Hi i don't have links to papers that you asked but want to add something to this :

    The effectiveness of TDD depends on what product you are working on,

    Through out my experience i found it highly effective in testing API services that work with a well defined contract.

    If the contract is well documented , the workflow we followed was like:

    1. There will be a development user story with all requirements and acceptance criteria
    2. Create a related Test user story from the development user story with high level user acceptance criteria
    3. Start writing the test cases with dummy json responses (which we could get from well documented contract )
    4. Once development is done run the tests on it, fail or pass the build according to the results.


    1. You gets build feedback on the same day when you finish development
    2. You can save system test time by not wasting effort in testing non qualified builds
    3. You can use saved time through fast feedback to plan more rigorous steps
    4. You can completely replace manual tests with partial or fully automated tests (In case of API testing)

    Limitations with UI and other complex solutions:

    1. UI behavior changes as development progress , you cannot predict how the html DOM will be like. Hence, it will be highly complex effort to write tests without knowing the locators

    2. Its not recommended to write tests scripts without actually testing whether it works and then wasting time fixing it once product get released. (Tho sometimes you need lesser time fixing it then actually developing from scratch. This highly unlikely as we know it takes more time debugging than writing something from scratch)

    Workaround for the limitations:

    1. Write manual tests cases in a TDD fashion

    2. You can use BDD feature file to write manual test cases

    3. Then automate the BDD features files by defining step definition once development is finished

Log in to reply

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2