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

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.

主站蜘蛛池模板: 齐河县| 元谋县| 广平县| 嫩江县| 阿拉善盟| 新郑市| 黎川县| 安达市| 泊头市| 民乐县| 廉江市| 滦南县| 甘肃省| 临清市| 曲阳县| 忻城县| 洞头县| 南召县| 融水| 武平县| 芦溪县| 佛教| 陆河县| 平乡县| 民权县| 萨嘎县| 平泉县| 福建省| 高陵县| 梅河口市| 宾川县| 赫章县| 体育| 丽水市| 三明市| 贡嘎县| 工布江达县| 清徐县| 西丰县| 黎城县| 米林县|