Pin It Down: Tests for Code You Didn't Write

Before changing old code that has no tests, write tests that record what it does today, right or wrong, so any change that alters its behavior shows up at once; these characterization tests pin the code down, surprises included, and the surprises become questions for the people who know the business.

By

Updated

Cheat sheet: Pin It Down: Tests for Code You Didn't Write
Category
Data Structures
Level
Journeyman
Tags
Approval Testing, Characterization Test, Legacy Code, OOP, software-development