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

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.

主站蜘蛛池模板: 军事| 酒泉市| 西乌珠穆沁旗| 乌审旗| 蓬安县| 夏津县| 敦煌市| 嘉定区| 陕西省| 中宁县| 体育| 大竹县| 新泰市| 柞水县| 洱源县| 明光市| 漳州市| 沙雅县| 娄烦县| 鄂温| 武陟县| 襄汾县| 灵宝市| 会同县| 凉城县| 开阳县| 霍邱县| 尉犁县| 临安市| 乌苏市| 蓝山县| 南涧| 出国| 东海县| 封开县| 灵寿县| 稷山县| 淮南市| 沂南县| 鹿邑县| 巫溪县|