Why are functional tests not enough? What do unit tests offer?

前端 未结 8 1158
庸人自扰
庸人自扰 2020-12-25 09:02

I just had a conversation with my lead developer who disagreed that unit tests are all that necessary or important. In his view, functional tests with a high enough code cov

8条回答
  •  佛祖请我去吃肉
    2020-12-25 09:49

    Bugs should be caught as soon as possible in the development cycle - having bugs move from design to code, or code to test, or (hopefully not) test to production increases the cost and time required to fix it.

    Our shop enforces unit testing for that reason alone (I'm sure there are other reasons but that's enough for us).

提交回复
热议问题