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

Writing a test

Every new feature starts with a test. The main objective of this test is to focus on requirements and code design before writing the code. A test is a form of an executable documentation and can be used later on to get an understanding of what the code does or what are the intentions behind it.

At this point, we are in the red state since the execution of tests fails. There is a discrepancy between what tests expect from the code and what the implementation code actually does. To be more specific, there is no code that fulfills the expectation of the last test; we haven't written it yet. It is possible that at this stage all the tests are actually passing, but that's the sign of a problem.

主站蜘蛛池模板: 广汉市| 尼勒克县| 蒙山县| 梁平县| 灌云县| 合阳县| 台前县| 尉犁县| 桐城市| 连州市| 白玉县| 星座| 慈溪市| 讷河市| 临沭县| 银川市| 奇台县| 留坝县| 屏边| 满城县| 广平县| 新龙县| 西峡县| 双城市| 如皋市| 阿城市| 日土县| 内江市| 郯城县| 徐水县| 丽江市| 博白县| 饶阳县| 双牌县| 泰州市| 普宁市| 安康市| 石门县| 肇州县| 营山县| 本溪|