What should a “unit” be when unit testing?

前端 未结 10 999
梦毁少年i
梦毁少年i 2020-12-28 15:16

On Proggit today I was reading the comment thread on a submission entitled, \"Why Unit Testing Is A Waste of Time\".

I\'m not really concerned with premise of the ar

10条回答
  •  [愿得一人]
    2020-12-28 15:42

    In general, the smaller you can make your units, the more useful and effective your unit tests will be. The whole point of units tests is to be able to localize any newly introduced bug to a small part of the code.

提交回复
热议问题