Skip to main content

Chen Ping: Refactoring Legacy Applications: A Case Study

Writing unit tests for legacy code is not easy; the legacy code is usually a big mess. To write effective unit tests against the legacy code, you probably need to refactor it first; and to refactor it, you need unit tests to ensure you are not breaking anything. This article describes a methodology to safely refactor legacy code by sharing a real case I once worked on...

Community: General