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

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.

主站蜘蛛池模板: 三明市| 彭泽县| 肃宁县| 阜康市| 宁晋县| 沙雅县| 无极县| 东乌珠穆沁旗| 武安市| 县级市| 弥勒县| 泗水县| 如皋市| 隆德县| 昌乐县| 宜宾县| 盘锦市| 越西县| 郯城县| 屏东县| 邵武市| 准格尔旗| 保亭| 宣城市| 德钦县| 霞浦县| 图片| 东辽县| 丹江口市| 龙胜| 山阳县| 平罗县| 竹北市| 大港区| 海宁市| 高雄市| 上思县| 宁晋县| 察雅县| 新竹县| 乐都县|