7 Protocols, 1 Binary, 0 Dependencies

go dev.to

Last year I counted the mock tools running on my laptop. WireMock for HTTP (Java, 200MB Docker image). A custom Node script for WebSocket. Mosquitto for MQTT. A Go stub for gRPC. Four tools, four runtimes, four sets of config files, four ports to remember. I spent more time wiring up mock infrastructure than writing the code it was supposed to help me test. So I built mockd. One binary: mockd add http --path /api/orders --status 200 \ --body '{"orders": [{"id": "{{uuid}}", "total": {{faker

Read Full Tutorial open_in_new
arrow_back Back to Tutorials