Securing Your Legacy Rewrite with Capture and Characterization Tests
summary
The talk explains how to secure a legacy code refactor by using capture and characterization tests rather than classic TDD. It describes the problem of lacking understanding of existing legacy behavior and shows, via an in-house kata, how to write automated tests that document current behavior or expose bugs to safely guide refactoring.
AI-written summary · about
chapters (6)
- 0:00Legacy testing intro
- 2:33Golden master testing
- 8:57Fragile golden masters
- 10:22Mocking dependencies
- 13:54Characterization testing
- 15:19Q&A
related talks
21mShaky to solid a test based approach to legacy code
40mTesting Legacy Code: Safe Refactoring
45mWorking with C++ Legacy Code
35mQuickly and Safely Refactoring Legacy Code
01h 44mTUTORIAL: Refactoring without a net
01h 11mLegacy: Rewrite cannot support
01h 25mGetting a Handle on Legacy Code
01h 01mYou Can Test Anything
