Skip to content

Glossary: Software Design Patterns in JavaScript

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 Kettle & Crane's order code, the totals 467.5, 42.6 and 31.25 become the expected values.

Where the book teaches it

Related terms

Fixture