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

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.

主站蜘蛛池模板: 台江县| 元朗区| 财经| 寿光市| 永修县| 信丰县| 西华县| 泗水县| 蚌埠市| 扎兰屯市| 忻州市| 杭锦旗| 芦山县| 尚志市| 简阳市| 和龙市| 黄浦区| 六盘水市| 高唐县| 霍城县| 井冈山市| 和硕县| 武平县| 渝北区| 庄河市| 高安市| 印江| 余姚市| 汾阳市| 博白县| 和顺县| 台江县| 张家川| 深州市| 兰溪市| 定陶县| 洱源县| 廊坊市| 固安县| 庆城县| 福海县|