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

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.

主站蜘蛛池模板: 阿城市| 辰溪县| 双流县| 忻城县| 新安县| 灵寿县| 清水县| 开远市| 漳平市| 读书| 化德县| 麻城市| 海原县| 绥滨县| 岑巩县| 莱芜市| 关岭| 星子县| 胶南市| 嘉黎县| 军事| 托克托县| 宣城市| 内江市| 衡阳市| 湛江市| 旺苍县| 丹巴县| 青龙| 康平县| 锡林郭勒盟| 镇康县| 阿坝县| 曲沃县| 寿阳县| 怀仁县| 曲靖市| 新建县| 汪清县| 嘉峪关市| 佛教|