TDD …how?

后端 未结 7 1030
逝去的感伤
逝去的感伤 2020-12-14 23:57

I\'m about to start out my first TDD (test-driven development) program, and I (naturally) have a TDD mental block..so I was wondering if someone could help guide me on where

7条回答
  •  不思量自难忘°
    2020-12-15 00:43

    Knowing where to start writing tests and when to stop writing tests while using TDD, is a common problem when starting out.

    I have found that it can sometimes help to write an integration test first. Doing so will help create some of the common objects you will be using. It will also allow you to focus your thoughts and tests, since you will need to start writing tests to make the integration test pass.

提交回复
热议问题