How do you approach writing tests for legacy code?
Start by identifying seams to isolate dependencies, use characterization tests to capture
existing behavior, refactor incrementally, and introduce tests gradually without breaking
functionality.
Start by identifying seams to isolate dependencies, use characterization tests to capture
existing behavior, refactor incrementally, and introduce tests gradually without breaking
functionality.