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

Repeating

Once all the steps (with refactor being optional) are finished, we repeat them. At first glance, the whole process might seem too long or too complicated, but it is not. Experienced TDD practitioners write one to ten lines of code before switching to the next step. The whole cycle should last anything between a couple of seconds and no more than a few minutes. If it takes more than that, the scope of a test is too big and should be split into smaller chunks. Be fast, fail fast, correct, and repeat.

With this knowledge in mind, let us go through the requirements of the application we're about to develop using the Red-Green-Refactor process.

主站蜘蛛池模板: 高雄县| 隆德县| 县级市| 昭通市| 离岛区| 太谷县| 胶州市| 合山市| 长沙县| 安多县| 图片| 新乡市| 华宁县| 弥渡县| 青海省| 沭阳县| 鞍山市| 大庆市| 锦州市| 昭觉县| 沙洋县| 鄂托克前旗| 安溪县| 娱乐| 元阳县| 南靖县| 云南省| 玉溪市| 姜堰市| 冷水江市| 宁安市| 达尔| 三亚市| 固原市| 金坛市| 上思县| 东城区| 苏尼特右旗| 渭源县| 乳山市| 雷波县|