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

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.

主站蜘蛛池模板: 那坡县| 盐边县| 临邑县| 如东县| 清原| 四平市| 迁安市| 辽源市| 朝阳县| 龙江县| 五河县| 竹山县| 竹山县| 石楼县| 澄城县| 禹城市| 泰来县| 澳门| 滦南县| 滨海县| 庆安县| 邯郸县| 德江县| 宁海县| 麟游县| 常州市| 中卫市| 南陵县| 宜川县| 忻州市| 郯城县| 伽师县| 金山区| 定州市| 当雄县| 深水埗区| 彰武县| 苏尼特右旗| 五家渠市| 肥东县| 利川市|