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

The Red-Green-Refactor process

The Red-Green-Refactor process is the most important part of TDD. It is the main pillar, without which no other aspect of TDD will work.

The name comes from the states our code is in within the cycle. When in the red state, code does not work; when in the green state, everything is working as expected, but not necessarily in the best possible way. Refactor is the phase when we know that features are well covered with tests and thus gives us the confidence to change it and make it better.

主站蜘蛛池模板: 正阳县| 密山市| 辽宁省| 清原| 乐陵市| 拉萨市| 沁水县| 宾阳县| 宣化县| 拜泉县| 祁阳县| 永平县| 新乡市| 神农架林区| 佛教| 扬中市| 安乡县| 武平县| 临安市| 乌拉特前旗| 东乌珠穆沁旗| 开原市| 土默特右旗| 辽宁省| 五家渠市| 土默特右旗| 武清区| 浏阳市| 绥化市| 尼勒克县| 三亚市| 吉水县| 灵寿县| 遂川县| 兴海县| 高要市| 余干县| 金阳县| 元阳县| 农安县| 泰和县|