brownfield-harness-builder

Builds the safety net a brownfield service needs before anyone refactors it: discovers or reconstructs its API contract, stands up Microcks mocks for its dependencies, and locks in what it does RIGHT NOW — bugs included.

When to use

Entry contract

Exit contract

Invariants

Why this shape

The harness locks in current behavior before anyone touches it: a green-before-refactor gate (S4) requires the full suite green against unmodified code. On CONCERNS, the human decides (B10) to proceed at acceptable risk or strengthen the net first.

« A characterization test is a test that characterizes the actual behavior of a piece of code. » — Feathers, M., Working Effectively with Legacy Code, 2004.

Allowed customisation

See also