官术网_书友最值得收藏!

No debugging

We (authors of this book) almost never debug applications we're working on!

This statement might sound pompous, but it's true. We almost never debug because there is rarely a reason to debug an application. When tests are written before the code and the code coverage is high, we can have high confidence that the application works as expected. This does not mean that applications written using TDD do not have bugs—they do. All applications do. However, when that happens, it is easy to isolate them by simply looking for the code that is not covered by tests.

Tests themselves might not include some cases. In those situations, the action is to write additional tests.


With high code coverage, finding the cause of some bug is much faster through tests than spending time debugging line by line until the culprit is found.
主站蜘蛛池模板: 翁牛特旗| 嘉定区| 枞阳县| 汉中市| 济源市| 太仓市| 农安县| 宜昌市| 浪卡子县| 大名县| 中牟县| 绥德县| 庆安县| 什邡市| 拜城县| 罗城| 宣武区| 绍兴县| 鲁山县| 娱乐| 米脂县| 中牟县| 潍坊市| 漠河县| 抚顺县| 贞丰县| 八宿县| 中山市| 巴中市| 岗巴县| 汾阳市| 闽侯县| 辽阳市| 平陆县| 天长市| 马公市| 阿坝县| 京山县| 墨江| 乌鲁木齐市| 晋州市|