Skip to content

Glossary: Software Design Patterns

Characterization test

Also written: characterization tests

A test that records what existing code does today, right or wrong, so a redesign can't change it by accident. For example, the three order totals from the old `place_order` (467.5, 42.6 and 31.25) become the expected values that the redesigned code must still produce.

Where the book teaches it

Related terms

pytestparametrize