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

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 with tests.

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

Note

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.

主站蜘蛛池模板: 安平县| 腾冲县| 石台县| 民县| 库尔勒市| 蒲江县| 清徐县| 张家界市| 九台市| 小金县| 定兴县| 定南县| 秦安县| 洞头县| 仁寿县| 永年县| 洪泽县| 鄂伦春自治旗| 青川县| 平昌县| 武城县| 平塘县| 雷波县| 石门县| 新建县| 锡林浩特市| 瑞安市| 牟定县| 新安县| 东乌珠穆沁旗| 呼和浩特市| 恭城| 沂水县| 彩票| 宜宾市| 巫溪县| 泰州市| 新河县| 三穗县| 平顶山市| 淮安市|