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

Running all the tests

It is very important that all the tests are run and not only the last test that was written. The code that we just wrote might have made the last test pass while breaking something else. Running all the tests confirms not only that the implementation of the last test is correct, but also that it did not break the integrity of the application as a whole. This slow execution of the whole test suite is a sign of poorly written tests or having too much coupling in the code. Coupling prevents the easy isolation of external dependencies, thus increasing the time required for the execution of tests.

In this phase, we are in the green state. All the tests are passing and the application behaves as we expect it to behave.

主站蜘蛛池模板: 德阳市| 紫阳县| 泊头市| 新兴县| 特克斯县| 繁峙县| 榆社县| 古田县| 红桥区| 隆子县| 栖霞市| 桦川县| 杭州市| 桃园市| 田东县| 安徽省| 巴林右旗| 民丰县| 施甸县| 西充县| 嵊泗县| 独山县| 永修县| 乌兰察布市| 甘德县| 合江县| 融水| 项城市| 永宁县| 黄骅市| 景德镇市| 清徐县| 宜春市| 阳朔县| 陇西县| 七台河市| 安阳市| 汝城县| 井冈山市| 沈丘县| 湖南省|