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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78c6a5ff14ab0a4a457f19bdd6c2e3aef470118a87f9fdaedfad0620e63c6bde |
|
MD5 | db516d73f5949baaf6f6280dbb649ba2 |
|
BLAKE2b-256 | 49f9077927f2bf39512ebe26fdc36ea2f5f88d353c92eb076328c9308aef9f11 |