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

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.

主站蜘蛛池模板: 团风县| 无极县| 长垣县| 柳州市| 醴陵市| 西乌珠穆沁旗| 湄潭县| 日照市| 疏勒县| 名山县| 吉水县| 巩留县| 庆城县| 孟津县| 廉江市| 东乡族自治县| 平南县| 云南省| 兰州市| 冀州市| 永宁县| 承德市| 密云县| 恩施市| 北票市| 进贤县| 汉川市| 阿坝县| 南漳县| 奉贤区| 扬中市| 准格尔旗| 台州市| 嘉荫县| 和政县| 青海省| 长兴县| 安达市| 安新县| 疏附县| 庆安县|