Using Tests as a Tool to Wrangle Legacy Projects

Abstract

Legacy projects tend to lack test coverage. Unfortunately, legacy projects are also often written in such a way that it makes it difficult to add tests. A few powerful testing techniques can make it much easier to get legacy projects under control.

Talk Description

Most code in the world is legacy code. Legacy projects tend to be lacking in test coverage. Unfortunately, legacy projects are often written in such a way that it makes it difficult to add tests - tests that are badly needed in order to start paying down technical debt and get the project on the right track.

Fortunately there are some effective ways of wrangling legacy code into submission. If we can break apart a legacy project’s entanglement of dependencies, making the code more modular and loosely coupled, we can add tests more easily. But breaking apart dependencies is tricky and requires a few certain techniques in order to be done safely.

Main points:

About the Talk

About the Author

Jason Swett helps Rails developers write better tests. Since putting his first website online in 1996, he has taught programming in four countries and worked for organizations like AT&T, Deloitte and the University of Chicago. Jason lives in Sand Lake, Michigan.