characterization test

A test that records what existing code currently does, right or wrong, so you notice if a change alters it.

In more detail

Writing it is a respectable step while bringing legacy code under control, as long as everyone knows the test pins current behaviour rather than correct behaviour. When you fix the bug, you change the test on purpose.

Related terms

Taught in

References