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

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.

主站蜘蛛池模板: 西昌市| 阳高县| 乌兰察布市| 吉木乃县| 收藏| 清河县| 洛阳市| 无为县| 天气| 高安市| 东丰县| 松阳县| 永德县| 隆子县| 遵义县| 丹江口市| 大宁县| 淳化县| 广东省| 通江县| 宜丰县| 皋兰县| 丹东市| 丹江口市| 青神县| 堆龙德庆县| 台东市| 温州市| 吴桥县| SHOW| 深泽县| 洛川县| 东莞市| 禹州市| 沅陵县| 高唐县| 山丹县| 长武县| 彭州市| 桑日县| 琼中|