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

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.

主站蜘蛛池模板: 韩城市| 金湖县| 六安市| 小金县| 新蔡县| 武宁县| 汾阳市| 石河子市| 年辖:市辖区| 南岸区| 图片| 富顺县| 陆河县| 松原市| 郑州市| 出国| 光泽县| 蓝田县| 平远县| 卓尼县| 肥城市| 女性| 漳州市| 彰化县| 夏邑县| 汨罗市| 肇州县| 开封市| 三明市| 敖汉旗| 南丰县| 理塘县| 班戈县| 玛纳斯县| 彰化市| 玉树县| 齐河县| 泰宁县| 普兰店市| 通道| 孝感市|