TDD. When you can move on?

后端 未结 13 1919
南旧
南旧 2021-01-11 10:36

When doing TDD, how to tell \"that\'s enough tests for this class / feature\"?

I.e. when could you tell that you completed testing all edge cases?

13条回答
  •  悲&欢浪女
    2021-01-11 11:14

    A test is a way of precisely describing something you want. Adding a test expands the scope of what you want, or adds details of what you want.

    If you can't think of anything more that you want, or any refinements to what you want, then move on to something else. You can always come back later.

提交回复
热议问题