Adding a custom Mock to the Keploy Mock File
This section documents how to use custom http mocks with keploy test cases
This section documents how to use custom http mocks with keploy test cases
How Universal Mocker recordings follow git. Each commit's keploy.lock pins what its replay serves, a branch's lock is listed under a Keploy branch of the same name, a pull request shows the tests it re-records, and merging the pull request in git merges its recordings. Every output is from Keploy 3.9.4.
How the mock.rules of keploy.yml name the calls your app makes after a test or on its own timer, the times it reads from its clock and the ids it mints, what keploy mock record and keploy mock replay do with each rule with KEPLOY_PROVEN=1, what keploy refuses, and the lines the rules leave. Read from the Keploy 3.9.10 code.
Keploy's VS Code extension installs the Keploy CLI, signs you in, and hands the setup of Keploy's dependency mocks to your coding agent.
Install the Keploy VS Code extension, sign in, and hand the setup of Keploy's dependency mocks to your coding agent. Where the CLI goes, which platforms work, what goes out, settings, telemetry and troubleshooting.
What keploy.yml and keploy.lock hold for the Universal Mocker, which files to commit, how keploy.lock pins your recordings, and how to publish a recording that a record kept in its staging folder.
Use Keploy as a language-agnostic mocking and service virtualization tool for your existing test suite — record the real dependency calls your tests make, then replay them so the suite runs without the real dependencies.
What keploy mock replay sends to the real network and what it keeps from it, how to let a call out on purpose with --on-miss passthrough, --pass-through-ports and --allow-egress dns, how to tell whether a replay reached a real service, and what a replay doesn't intercept. Every output is from Keploy 3.9.4.
How the Universal Mocker tells your databases, queues and services apart, how it reads encrypted connections, and what to know about PostgreSQL, MySQL, Redis and Amazon SQS when you record and replay your tests with keploy mock. Read from the Keploy 3.9.4 code.
Record a new test, or re-record a test whose calls changed, without running the whole suite against the real dependencies again. keploy.lock keeps every other test's recording. Replay a few tests, and see what a branch re-records with keploy mock diff. Every output is from Keploy 3.9.4.
Replay your tests on every pull request and every push to main with no database or service running. The GitHub Actions workflow, the read-only CI key, caching the recordings, the pull request comment, what fails the job, other CI systems and re-recording. Every output is from Keploy 3.9.4.
Where the Universal Mocker records the calls your app makes outside a test, such as at start-up, for a cached token or from a poller, which test a replay answers each one in, and how sessionCalls serves a call to every test. Read from the Keploy 3.9.4 code.
What keploy mock replay does when your tests send values that change on every run, such as the time, today's date, random ids in a header, a body or a path, and a token that expires, in a replay of the whole run and in a replay that checks each test on its own. Every output is from Keploy 3.9.4.
What keploy mock record and keploy mock replay print when something goes wrong, what causes it, and how to fix it, from a call with no recording to a replay that passes on your machine but fails in CI. Every message is from Keploy 3.9.4.
Keploy's Universal Mocker records the database, queue and API calls your own test suite makes, then replays them so go test, pytest, Jest, JUnit or Playwright runs with those dependencies switched off. Service virtualization with no mock code to write.
Every capability of Keploy's Universal Mocker (keploy mock), each with a link to the page that shows it. Record and replay any test command, check each test on its own, share recordings through keploy.lock and Keploy branches, re-record one test, keep replays off the real network, and handle values that change.
Every keploy mock command and flag of Keploy 3.9.13, as the CLI's own help prints it, the keploy.yml keys and environment variables that set the same values, the exit codes, and the replay results keploy mock status reports.
Install Keploy's mocking skill for Claude Code, Cursor, Codex, GitHub Copilot or Antigravity, then let your agent record and replay your tests' dependency calls by following the NEXT block each keploy mock command prints. Every output is from Keploy 3.9.4.