Topic

mocking

4 min read

Mocking Conditional Requests: ETags and 304 Not Modified

Quick answer: A mock that always returns 200 with a full body never exercises the conditional-request path, so a client bug in If-None-Match or ETag handling stays hidden until production.

Read article
4 min read

Resetting Mock State Between Tests for Real Isolation

Quick answer: Stateful mock servers are shared infrastructure, and if one test leaves stubs, counters, or scenario state behind, the next test starts from an unknown condition and fails for

Read article
3 min read

Dead Stubs: Finding Mock Mappings No Test Actually Uses

Quick answer: Mock mappings accumulate like any other code, and over time a test suite builds up dead stubs, mappings no test actually exercises. They look harmless but increase maintenance,

Read article