Characterization Test
A test that records the actual current behavior of a system rather than being based on a specification; used to lock in the existing behavior of a legacy system before refactoring, serving as a baseline for verifying behavioral equivalence.
Core Facts
Timeline (last 90 days)
For legacy systems with missing documentation and no one who fully understands their behavior, characterization tests are often more pragmatic than trying to first clarify the business logic, and they are also a necessary prerequisite for judging "whether a step is truly safe".
Golden Master is a black-box testing technique popularized by Michael Feathers in Working Effectively with Legacy Code, used to establish a behavioral baseline for legacy code that lacks tests.
All Facts (4)
Behavioral regression testing draws on the regression testing concept from traditional software engineering: whenever a prompt is modified, a predefined set of test cases is automatically run to verify that the model has not degraded on key behavioral dimensions.
65%UnverifiedFor legacy systems with missing documentation and no one who fully understands their behavior, characterization tests are often more pragmatic than trying to first clarify the business logic, and they are also a necessary prerequisite for judging "whether a step is truly safe".
50%UnverifiedGolden Master is a black-box testing technique popularized by Michael Feathers in Working Effectively with Legacy Code, used to establish a behavioral baseline for legacy code that lacks tests.
50%Unverified测试接缝(Test Seam)概念最早由Michael Feathers在《修改代码的艺术》中提出,指代码中可以插入测试观测点的位置
50%