Kaizentis

Quality · API mocking

Shadow Mock

A centrally hosted mock server with shared defaults for your whole org, and private overrides for any test.

Keep one hosted set of default mocks that everyone in your organisation can use and a few people maintain. Any developer or CI test can override a response for its own run, and nobody else sees the change. It runs the WireMock mappings and files you already have, on a fast, lightweight Go server.

Start free See pricing Read the user guide

What you get

Shared defaults, private overrides

Your organisation hosts one set of default mocks, so no team has to build and run its own. When a test needs something different, such as a failing payment or a slow response, it overrides just that response for its own run. The override is invisible to the rest of the org, and every other test keeps getting the defaults.

Fully customisable per person and per pipeline

Individual developers and CI runs get the full power of mappings and responses, without a copy of the whole mock system and without waiting for someone to change the shared version. Overrides expire on their own, and a useful one can be promoted to a shared default.

Defaults that are easy to maintain

Default mocks live in mock sets, each with its own owners, editors and keys. A change to one set can’t break another team’s tests, and sets can be updated from CI so they stay in step with your repository.

WireMock compatible

Use the mappings and __files folders you already have. Shadow Mock reads the WireMock format, so moving over means pointing your tests at a new address, not rewriting your mocks.

Written in Go

A single small server that starts quickly and needs little memory and CPU, so it is cheap to run for a whole organisation and easy to put in a pipeline or on a laptop.

Call journal

See each request your tests made to a mock and what came back, to find out why a test failed without guessing.

Teams, roles and audit

Sign in once, work in your organisation, and give people and teams access to the sets they need. Every change is written to an audit log.

Open-source engine

The server that answers your tests is the open-source Shadow Mock engine, so what runs in CI is what you can read, run yourself and change.

Shadow Mock on GitHub · User guide

Ways to run it

Run it on your own machine

Run the open-source Go app as a standalone mock. It reads your WireMock mapping and response files and serves them, with nothing to sign up for.

Shadow Mock on GitHub · User guide

Host your own central server

Run the open-source server for your whole organisation, so everyone shares one set of default mocks, hosted and looked after by you.

Shadow Mock on GitHub · User guide

Use the Kaizentis hosted service

Sign up for Shadow Mock on Kaizentis and we run it for you, with the web app for managing mock sets, access and CI upload. There are Free, Team and Business plans.

Sign up · See pricing

How it fits your work

  1. Create an organisation and a mock set for the system you want to stand in for, and bring your WireMock mappings and files.
  2. Your team maintains the set as the default: edit it in the web app, or upload it from CI.
  3. Everyone points their tests at the one hosted address and gets the defaults.
  4. A developer or a CI test that needs different behaviour creates a private override with its own key and changes only the responses it needs. Only calls that carry that key see it.
  5. Check the journal when something behaves differently than you expected, and promote an override to the defaults if it is worth sharing.

What it doesn’t do