How does TDD make refactoring easier?

前端 未结 8 916
温柔的废话
温柔的废话 2021-02-01 16:53

I\'ve heard that projects developed using TDD are easier to refactor because the practice yields a comprehensive set of unit tests, which will (hopefully) fail if any change has

8条回答
  •  暖寄归人
    2021-02-01 17:17

    I would recommended (as others have):

    • Refactoring: Improving the Design of Existing Code - Martin Fowler
    • Test Driven Development: By Example - Kent Beck
    • Patterns of Enterprise Architecture - Fowler et al.

提交回复
热议问题