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

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.

主站蜘蛛池模板: 延长县| 沁源县| 宁南县| 云林县| 米泉市| 澄江县| 阳江市| 武陟县| 富锦市| 阿巴嘎旗| 达日县| 崇阳县| 阿瓦提县| 越西县| 北票市| 攀枝花市| 阳城县| 平远县| 建水县| 郎溪县| 莎车县| 广宗县| 贞丰县| 泊头市| 鹤山市| 天门市| 辰溪县| 玉田县| 鄂尔多斯市| 府谷县| 普洱| 元阳县| 六盘水市| 荥经县| 邵东县| 肥城市| 新乡市| 尤溪县| 江都市| 阿拉善右旗| 新绛县|