Unit tests - The benefit from unit tests with contract changes?

前端 未结 9 1157
無奈伤痛
無奈伤痛 2021-01-30 00:27

Recently I had an interesting discussion with a colleague about unit tests. We were discussing when maintaining unit tests became less productive, when your contracts change.

9条回答
  •  -上瘾入骨i
    2021-01-30 00:51

    Someone asked the same question in the Google Group for the book "Growing Object Oriented Software - Guided by Tests". The thread is Unit-test mock/stub assumptions rots.

    Here is J.B. Rainsberger's answer (he is the author of Manning's "JUnit Recipes").

提交回复
热议问题