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

Refactoring

To achieve full code coverage, both the tests and the source code have to be refactored and tested several times to ensure that a robust and clean code is written. Refactoring should be iterative until full coverage is achieved. The refactoring step should remove duplicates from code and attempt to fix any signs of code smell.

The essence of TDD is to write clean code and in turn solid applications, depending on the type of tests being written (unit, acceptance, or integration tests). Refactoring can be localized to just a method or it can affect multiple classes. When refactoring, for example, an interface or multiple methods in a class, it is recommended you make the changes gradually, taking it one test at a time until all the tests and their implementation code are refactored.

主站蜘蛛池模板: 定日县| 社旗县| 望都县| 松潘县| 绍兴县| 麻江县| 双柏县| 雷山县| 故城县| 乐业县| 股票| 乌拉特中旗| 青川县| 霍州市| 神池县| 和政县| 西安市| 库尔勒市| 抚宁县| 灌阳县| 黑河市| 基隆市| 临城县| 永平县| 东乡族自治县| 来凤县| 井冈山市| 台湾省| 兰考县| 家居| 潞城市| 定安县| 固阳县| 河源市| 军事| 扬中市| 兴义市| 航空| 闻喜县| 施甸县| 黄山市|