Hoverfly is an Apache-2.0 API simulation tool for development and testing. It can capture service interactions into reusable simulations, serve controlled responses without the original dependency and introduce behavior such as latency or failures.[1]
Capturing and simulating
Capture mode runs Hoverfly as a proxy between a client and the real service, recording their exchanges. It is unavailable when Hoverfly runs as a webserver. Simulate mode instead responds from simulation data without forwarding the request to the real API. Choosing the mode is therefore an operational distinction: capturing still depends on the upstream service, whereas replaying a prepared simulation can remove that dependency.[2][3]
Stateful response sequences
By default, capture ignores repeated requests that have not changed. That can omit a meaningful sequence when an endpoint returns different responses to the same request over time. Stateful capture disables that duplicate-request handling so the sequence can be replayed in order. A recording strategy should therefore reflect whether the service is being modeled as stateless or as a workflow with changing responses.[2]
Portable simulation fixtures
The command-line workflow can export captured simulation data as JSON for editing, sharing and later reuse. Exports can be filtered by URL pattern to separate fixtures. Request headers are not captured by default and must be selected explicitly when needed. This makes capture configuration part of the test fixture: a body-and-URL recording should not be assumed to preserve header-dependent authentication or routing behavior.[1][4]
HTTPS and deployment boundaries
Capturing HTTPS requires the test client to trust Hoverfly's certificate so that the proxy can inspect the encrypted exchange. The documentation describes client-specific certificate handling and notes that its Java integration automates this setup. Trust configuration is therefore a prerequisite, not evidence that arbitrary encrypted traffic is inspectable without client cooperation. The open-source tool's Apache-2.0 license is distinct from the separately advertised hosted service.[1][5]
Substitution scope
Hoverfly can substitute for WireMock for HTTP dependency simulation when a capture-and-replay workflow and reusable JSON fixtures fit the project. WireMock also records proxy interactions but uses its own mappings and scenario model. No direct fixture converter or equivalent matching behavior is established here. Migration should verify capture headers, stateful sequences and proxy-versus-webserver deployment rather than assuming that the same recorded payload produces equivalent tests.[2][4][6][7]
Capabilities & limitations
Proxy capture and replay
supported
Capture observes live traffic; simulate serves fixtures without forwarding to the real API.[2][3]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
Serving simulations without forwarding to real API
vendor · checked 2026-10-07
Stateful recording
limited
Explicit stateful capture is needed to preserve changing responses to identical requests.[2]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
Requires test-client trust in Hoverfly's certificate.[5]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
/* wbeditentity-create-item:0| */ sf:efa08bd0-fb94-4040-b2f7-61f028514fa8:v2 | Remove unsupported subscription-plan qualifiers from the three open-source capabilities and WireMock relationship. Replace them with version, deployment-mode an | attribution: /proposals/efa08bd0-fb94-4040-b2f7-61f028514fa8