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

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.
主站蜘蛛池模板: 文安县| 嵩明县| 马关县| 比如县| 青阳县| 安国市| 稻城县| 大洼县| 姚安县| 健康| 武穴市| 珲春市| 青川县| 乌拉特前旗| 崇明县| 深水埗区| 邵武市| 洪江市| 广平县| 海宁市| 田阳县| 临泽县| 河曲县| 宜良县| 河源市| 分宜县| 开阳县| 遵义市| 弥渡县| 商城县| 樟树市| 柳河县| 武乡县| 顺义区| 敦煌市| 习水县| 手游| 红原县| 长沙市| 澄迈县| 出国|