Content Deep Dive

When Handwritten Mocks Stop Scaling

Blog post from Speedscale

Post Details
Company
Date Published
Author
Matt LeRay
Word Count
1,472
Company Posts That Month
17
Language
English
Hacker News Points
-
Post removed?
No
Summary

Test substitutes should be chosen according to the specific risk a test needs to address, balancing fidelity against speed, setup effort, and the danger of silent drift rather than adopting more elaborate tooling by default. The progression ranges from fast hand-written function stubs for decision logic, through in-memory fakes and in-process or standalone fake servers for state and protocol behavior, to recorded traffic and disposable real dependencies for increasingly realistic validation. As systems expand across many endpoints and teams, independently maintained stubs and aging fixtures can become untrustworthy, making shared mocks, captured traffic, contract tests, or real dependencies appropriate when concrete compatibility risks arise. The central recommendation is to begin with the smallest substitute that answers the test’s question—often a function stub—and move up only when an identified gap becomes material, while using the real dependency directly when it is fast, deterministic, and accessible.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 3 1,231 285 104 +38%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.