Workflow comparison
| Decision | Mountebank | Gostly |
|---|---|---|
| Record a matching request | proxyOnce records a response and replays it for later matching requests. predicateGenerators select matching fields; an unmatched request can proxy again. | Capture a selected exchange in LEARN, complete the service-library build and confirm effective MOCK before checking replay. |
| Choose the replay mode | proxyAlways continues forwarding and recording. Switch to replay explicitly with mb replay or the equivalent API operation. | Keep the selected service route and built library with the test. Inspect the response source and configured miss behavior. |
| Sequence responses and state | Stub responses form an ordered circular sequence; repeat controls how many times a response is used. Shared injected state needs JavaScript and --allowInjection. | Configure the required lifecycle and reset condition separately. A captured response alone does not establish later state transitions. |
| Prepare delays and failures | wait adds a configured delay. Stub response types include is, proxy, inject and fault. | Choose the supported HTTP response, error or delay your test needs, then check its effect in your application. |
| Configure HTTPS | HTTPS imposters can use the built-in self-signed certificate or a supplied certificate/key pair. Configure the client's trust for the chosen certificate. | Use the documented HTTPS trust setup and configure the selected service route and capture upstream. |
| Operate the environment | Run the MIT-licensed Node.js service and maintain its imposter and stub configuration. | Operate the licensed Docker Compose stack with a Gostly account and key. Review retained data, upstream routing, licensing, telemetry and configured integrations. |
Workflow and operating model
Mountebank combines predicates with authored or proxied responses. Its default proxyOnce mode inserts recorded responses ahead of the proxy stub, so later matching requests can replay while new inputs may still reach the upstream. Choose the matching fields deliberately. Proxy modes and generated predicates.
Simple multi-step flows use ordered responses; shared state needs --allowInjection and your own JavaScript. Review the injected code and reset its state for each test. Injection and shared state.
Choosing a workflow
Choose Mountebank when its predicates, recorded stubs and response sequences fit the case you want to maintain. Choose Gostly when you want the operator dashboard, service routing and managed response-library workflow in the supported stack.
Keep acceptance in your existing client or test runner. Compare the response it receives and the resulting application behavior, including an uncovered request and any required state reset.
License and ongoing operation
Mountebank uses the MIT license. Gostly is a licensed self-hosted platform with a 14-day Pro trial, no credit card required. A subscription is required after the trial; review current Gostly pricing and include your infrastructure and operating effort.
Team adds a multi-user workspace, member administration and an organization audit log.
Prepare the same HTTP case
Use one reviewed nonproduction request and response, plus an application assertion. In Mountebank, inspect the selected predicates and proxy mode. In Gostly, configure the service route. For LEARN captures, complete the library build; for imported examples, inspect warnings and confirm a successful reload. Confirm effective MOCK before checking the application.
Send a matching request and an intentionally unmatched request. Record response origin, upstream contact and the caller's result. Restore the chosen starting state before repeating the check. This is a reader-owned evaluation plan.
Treat existing Mountebank predicates, response ordering and injected JavaScript as separate migration work. The HAR, Postman and OpenAPI guides cover those reviewed input formats.