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

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.
主站蜘蛛池模板: 永修县| 江山市| 那曲县| 吉首市| 榕江县| 宜黄县| 仁化县| 台山市| 盐山县| 博湖县| 盐边县| 黄平县| 图们市| 淮北市| 阜新市| 宕昌县| 宜黄县| 秦安县| 仙游县| 三河市| 屏东市| 大埔县| 沿河| 彭州市| 东丽区| 西林县| 博湖县| 彰武县| 云霄县| 山西省| 巨野县| 湟中县| 长岭县| 阿尔山市| 资中县| 仙游县| 陈巴尔虎旗| 香河县| 嘉义县| 新河县| 淮北市|