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

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.

主站蜘蛛池模板: 长乐市| 邯郸县| 望奎县| 石台县| 包头市| 江孜县| 柳江县| 和顺县| 晋中市| 黑山县| 吉隆县| 巩留县| 安国市| 濮阳市| 绥宁县| 安平县| 安吉县| 漳浦县| 黔江区| 金华市| 正镶白旗| 广安市| 花莲县| 商南县| 涡阳县| 深水埗区| 汨罗市| 博湖县| 师宗县| 钟山县| 西平县| 高州市| 柳林县| 攀枝花市| 万安县| 富宁县| 泾源县| 宿松县| 香格里拉县| 义乌市| 大邑县|