The Value of Unit Testing

前端 未结 12 1862
猫巷女王i
猫巷女王i 2021-01-11 16:48

Here are some typical answers(ranked in ascending order of corniness) I get from managers/bosses whenever I bring up the importance of having unit tests and code coverage as

12条回答
  •  孤城傲影
    2021-01-11 17:19

    My short and incomplete advice would be to:

    • Just change jobs. A company whose managers give that sort of answers is going to fail anyway, and soon. Get out before it's too late.

    • Reverse the blame game. Make an official statement every time something gets released without unit testing that it has been done so, and that you are not guaranteeing it's bug-free.

    • Write down the time you spend on tasks, separating bug fixing after failed deployments, and total it against a (potential) time allotment for writing unit tests.

提交回复
热议问题