Is there hard evidence of the ROI of unit testing?

前端 未结 11 2371
既然无缘
既然无缘 2020-12-12 08:54

Unit testing sounds great to me, but I\'m not sure I should spend any time really learning it unless I can convince others that is has significant value. I have to convince

11条回答
  •  被撕碎了的回忆
    2020-12-12 09:50

    There are statistics that prove that fixing a bug found in the unit/integration test costs many times less than fixing once it's on the live system (they are based on monitoring thousand of real life projects).

    Edit: for example, as pointed out, the book "Code Complete" reports on such studies (paragraph 20.3, "Relative Effectiveness of Quality Techniques"). But there is also private research in the consulting field that proves that as well.

提交回复
热议问题