Can unit testing be successfully added into an existing production project? If so, how and is it worth it?

前端 未结 23 2476
遇见更好的自我
遇见更好的自我 2020-12-12 09:01

I\'m strongly considering adding unit testing to an existing project that is in production. It was started 18 months ago before I could really see any benefit of TDD

23条回答
  •  佛祖请我去吃肉
    2020-12-12 09:39

    • yes, it is. when you start adding new functionality it can cause some old code modification and as results it is a source of potential bugs.
    • (see the first one) before you start adding new functionality all (or almost) code (ideally) should be covered by unit tests.
    • (see the first and second one) :). a new grandiose functionality can "destroy" the old worked code.

提交回复
热议问题