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

Writing the tests

This is the initial step of the technique, where you have to write the tests that describe a component or feature to be developed. The component can be the user interface, business rule or logic, data persistence routine, or a method implementing a specific user requirement. The tests need to be brief and should contain the required data input and desired outcome expected by the component being tested.

While writing the tests, technically you have solved half of the development task, because the design of the code is usually conceived through the thought pattern and process put into writing the tests. It becomes easier to tackle the difficult code after the easier code, which is the test that has been written. At this point, as a TDD newcomer, the tests are not expected to be 100% perfect or have full code coverage, but with continuous practice and adequate refactoring, this can be achieved.

主站蜘蛛池模板: 锡林浩特市| 盘锦市| 颍上县| 巴东县| 宜兴市| 全椒县| 民乐县| 宁安市| 广宁县| 平武县| 衡水市| 长春市| 大厂| 梁山县| 榆树市| 蒲城县| 会东县| 崇州市| 宣恩县| 台山市| 偏关县| 历史| 珠海市| 西华县| 汉阴县| 兰州市| 台中县| 宝鸡市| 徐州市| 宁阳县| 大兴区| 城市| 乌恰县| 竹山县| 宜宾县| 吉隆县| 剑阁县| 武穴市| 新郑市| 沭阳县| 临泽县|