Testing & QA
Bug Report
All unit tests passed and the release failed in production: our mock had drifted from the real API
A shipping integration had 96 percent coverage and a green build. In production, every label request failed, because the carrier API returned a field as a nested object while our mock returned a string. Why mocks drift, the difference between mocks and fakes, and the checks that keep test doubles honest.