Should I write unit test for everything?

前端 未结 13 1420
太阳男子
太阳男子 2020-12-30 00:36

I am wondering should I write unit test for everything. There are some classes is very difficult to write unit test. For example, I am writing some program for handling audi

相关标签:
13条回答
  • 2020-12-30 01:28

    Cheap answer: Test everything that could possibly break

    Ultimately though you need to understand the business value of the tests you write - no different to any other effort you expend, any other codebase you commit yourself to maintaining.

    0 讨论(0)
提交回复
热议问题