Skip to main content

A tool for creating mocks via a capture-replay style approach

Project description

CaptureMock’s approach is a so-called capture-replay approach. This means that when you ‘record’ your mock, CaptureMock will observe the interaction between your code and the subsystem you are mocking out, and record it in a text file in its own format. When you then run your test in ‘replay mode’, CaptureMock can play the role of the subsystem in question and the real subsystem does not need to even be installed.

You can then choose, each time you run your tests, whether you wish to have the real subsystems present and verify/recreate the captured mocks, or to rely on the mocks captured by a previous run. If you are running in ‘replay mode’ and CaptureMock does not receive the same calls as previously, it will fail the test, and suggest that you may want to recreate the mocks in record mode.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CaptureMock-2.4.1.tar.gz (5.2 MB view details)

Uploaded Source

File details

Details for the file CaptureMock-2.4.1.tar.gz.

File metadata

  • Download URL: CaptureMock-2.4.1.tar.gz
  • Upload date:
  • Size: 5.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for CaptureMock-2.4.1.tar.gz
Algorithm Hash digest
SHA256 78c6a5ff14ab0a4a457f19bdd6c2e3aef470118a87f9fdaedfad0620e63c6bde
MD5 db516d73f5949baaf6f6280dbb649ba2
BLAKE2b-256 49f9077927f2bf39512ebe26fdc36ea2f5f88d353c92eb076328c9308aef9f11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page