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

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.

主站蜘蛛池模板: 监利县| 宝清县| 宝兴县| 巴里| 屏南县| 广元市| 石楼县| 镇宁| 丘北县| 温州市| 大荔县| 安新县| 资溪县| 如皋市| 鄂温| 云梦县| 班戈县| 麻阳| 陆丰市| 得荣县| 革吉县| 襄樊市| 德令哈市| 凭祥市| 沛县| 陆丰市| 巫溪县| 新疆| 加查县| 邢台县| 乌拉特中旗| 宜良县| 青神县| 柳州市| 遂溪县| 泸溪县| 三明市| 潜山县| 阳谷县| 阳高县| 沽源县|