AWS re:Invent happy hour: Dec 1, 6 PM PST at MGM Grand RSVP

An API blueprint sits beside recorded traffic flowing into a test gate.

Speedscale vs. Microcks for API Regression Testing


Your contract can pass and your order flow can still regress. A schema describes the responses available to a client. It takes a real request and the right downstream reply to find out which branch the service chooses. Use Speedscale when your release depends on preserving behavior that customers already rely on. Bring your OpenAPI file and let the recording show what your tests cover. Speedscale recording coverage · Speedscale replay overview

🎯 Key Takeaways
  • Use Microcks to mock an API from examples and run conformance tests against a contract.
  • Use Speedscale to measure what a recording covers and replay observed requests with recorded dependency behavior.
  • A fixture can cover every operation yet miss most documented response cases. Measure both before deciding what belongs in the release gate.

Compare the evidence each workflow gives you

QuestionMicrocksSpeedscale
Can an API consumer start before the provider is ready?Import API artifacts and examples to stand up mocks.Generate mocks from an OpenAPI spec, or mock a dependency from its captured replies.
Does the API meet its published contract?Run contract tests against a deployed endpoint and automate them in CI.Validate a recording against a contract and measure which operations, statuses, and fields it actually reached.
Will a refactor preserve observed business behavior?Author examples or tests for the interactions the contract suite needs.Replay captured inputs and serve recorded dependency replies, with a gate for changed outcomes.

Microcks API examples · Microcks in GitLab CI · Speedscale OpenAPI workflow · Speedscale replay verdicts

See what eight covered routes missed

The mock-lab Node service exposes a project catalog and order flow. Its committed recording hits all eight operations in the OpenAPI contract. That sounds complete until you look at the response statuses. The same fixture covers eight of 19 documented operation-and-status combinations. For POST /api/orders, the capture includes a 201 success. The contract also lists 400, 401, 404 and 502 responses that the fixture never saw. A gate built on that recording can exercise the successful order. The 502, a failed downstream call, is the gap this example follows, and it still needs an intentional test. Node mock-lab fixture

With proxymock and jq installed, run this from the root of a mock-lab checkout using the linked fixture. The report is local and reads the recording and its workspace contract. It prints the coverage totals and the missing status cases for the order route: 400, 401, 404 and 502.

cd languages/node
proxymock coverage --in proxymock/recording --json | jq '{
  operations: .summary.operations,
  statuses: .summary.statuses,
  missingOrderStatuses: [
    .gaps[] |
    select(.kind == "status" and .method == "POST" and .path == "/api/orders") |
    .status
  ]
}'
LLM prompt for this step
In my mock-lab checkout, enter languages/node and run proxymock coverage --in proxymock/recording --json. Use jq to show the operation and status counts in summary and the status gaps for POST /api/orders. Confirm that the committed fixture shows eight of eight operations, eight of 19 statuses, and missing 400, 401, 404 and 502 statuses for that route. Check the installed command's help before adapting flags and report what you ran and observed.

This is where Speedscale helps you spend test effort well. The capture tells you which routes and replies it can reproduce today. The contract tells you which missing cases are worth adding. A 502 that changes checkout behavior has a clear owner and a concrete fixture requirement. A count of endpoints by itself would give the team no reason to look there. Speedscale recording coverage

Turn one gap into a release check

Two responses can both satisfy the same OpenAPI schema and carry very different meaning. For example, an order can have a valid total of either 59.00 or 60.00. A conformance check can establish that the amount has the right type. A replay assertion can tell you whether the amount changed for an order your service already handled. Keep both checks when clients rely on the shape and the calculation.

A useful test for that 502 has two pieces. First, the chosen input and downstream reply should trigger the branch. Second, the application outcome must match the expectation, including the response status and any stable field the client relies on. A baseline replay keeps the reference outcome for the same request. The candidate result shows whether a patch changed it. For shared production-derived fixtures, apply configured masking before you distribute the capture. Speedscale replay gates · Speedscale DLP at capture

Microcks can still give other teams a predictable contract mock, including while a provider is under development. Use Speedscale for the next change whose risk comes from real traffic. Take a recording you already have, compare it with the contract, and start your first replay with the endpoint that matters most to the release. Get started with proxymock

Frequently asked questions

Can Speedscale use an existing OpenAPI contract?

Yes. proxymock can compare a recording with an OpenAPI contract and report which documented operations, response statuses, and JSON response fields appeared in it.

When should I use Microcks?

Microcks is a fit when you want API mocks based on contract examples or want to check a provider against a specification. It supports running contract tests in CI.

Why use Speedscale if I already run contract tests?

Use Speedscale for the release check that depends on observed customer traffic and downstream replies. Compare the recording with the contract to identify missing cases, then replay the covered behavior against a candidate build.

Stop writing API mocks by hand

proxymock records real traffic from your running app and replays it as mocks for HTTP, gRPC, Postgres, Kafka, and more. Install locally, activate once, and start recording.