Skip to content

Glossary: Refactoring and Clean Code

Unit test

Also written: unit tests

A small, fast test that checks one function directly, such as the discount tiers or the Portland $300 delivery limit. Unit tests pin down individual rules and can sit beside a broader golden test of the whole output.

Where the book teaches it

Related terms

Golden masterEdge case