TDD on Legacy Code
summary
Shows how to make untestable legacy Java code testable using the TripServiceKata exercise by Sandro Mancuso. Demonstrates applying seam techniques to introduce test seams, then refactoring the design to obtain clean, testable code; covers practical principles and techniques for bringing legacy code under test.
AI-written summary · about
chapters (17)
- 0:00TDD on legacy code
- 3:17Trips Service Kata rules
- 6:53Analyzing legacy code
- 8:19First unit test
- 13:04Behavior with tests
- 16:18Isolate deps with test subclasses
- 20:01Cover first code branch
- 21:54Wishful thinking tests
- 25:11From failing to green test
- 28:08Test unknown users
- 31:40Stub external deps
- 33:24Refactor for readability
- 36:55Next steps for coverage
- 38:26Code responsibility
- 44:02Repository interfaces
- 49:51Complex collaborators tests
- 51:24Q&A
related talks
01h 09mTDD Workshop, tests are your best ally
51mTest-Driven: from Zero to Hero
42mWorking Effectively with (Android) Legacy Code
45mTDD makes you a better everyday developer
45mWorking with C++ Legacy Code
01h 01mYou Can Test Anything
34mTesting legacy code when you dislike tests (and legacy code)
58mTDD for database related code, how is it possible?
