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

Red

You start by writing a failing test. It needs to test a required feature of the software product that is not already implemented or an edge case that you want to make sure is covered. The name red comes from the way most IDEs indicate a failing test. Xcode uses a red diamond with a white x on it.

It is very important that the test you write in this step initially fails. Otherwise, you can't ensure that the test works and really tests the feature that you want to implement. It could be that you have written a test that always passes and is, therefore, useless. Or, it is possible that the feature is already implemented. Either way, you gain insight into your code.

主站蜘蛛池模板: 温宿县| 湘阴县| 沈丘县| 万盛区| 中山市| 勃利县| 富民县| 五大连池市| 新平| 左权县| 苏尼特左旗| 高台县| 兰溪市| 雷波县| 凉山| 安徽省| 平乐县| 嘉峪关市| 屯留县| 栾川县| 静宁县| 勐海县| 双江| 昌吉市| 平罗县| 洞口县| 罗山县| 玉山县| 柘荣县| 明溪县| 建德市| 汾阳市| 大港区| 区。| 京山县| 开化县| 承德县| 澄江县| 雷州市| 湘潭县| 富源县|