Monday, 7 November 2016

程序员修炼之道读书笔记 47




Use Saboteurs to Test Your Testing
让搞破坏的人测试你的测试用例。
When writing tests, make sure that alarms sound when they should.
好的测试用例应该是出现问题是能够及时捕获。
Test State Coverage, Not Code Coverage
测试状态覆盖,而不是代码覆盖。
If a bug slips through the net of existing tests, you need to add a new test to trap it next time. The Author calls this “tighten the net”.
任何漏网之鱼,都说明你的网有漏洞,你需要修补好你的网。确保不会有同样的鱼从哪里逃走。Bug也是一样的道理。

No comments:

Post a Comment