Freeze the Clock Before You Refactor: Characterization Tests for Impure Code
Legacy code is rarely untestable. It is usually just unseeded. A characterization test that reads the wall clock will flake on day two. So freeze the inputs first, then pin the outputs. This is the order that survives review. Below is a reproducible loop: inventory impurity, insert one text-only bo…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-09 00:21 · DEV Community — AI
Freeze the Clock Before You Refactor: Characterization Tests for Impure Code