🌟 The must-have tool for developers in the AI-Gen era 🌟
Keploy is a developer-centric API testing tool that creates backend tests along with built-in-mocks, faster than unit tests.
Keploy record API calls and replays them during testing, making it easy to use, powerful, and extensible. Here are Keploy's core features: 🛠
-
♻️ Combined Test Coverage: Merge your Keploy Tests with your fave testing libraries(JUnit, go-test, py-test, jest) to see a combined test coverage.
-
🤖 EBPF Instrumentation: Keploy uses EBPF like a secret sauce to make integration code-less, language-agnostic, and oh-so-lightweight.
-
🌐 CI/CD Integration: Run tests with mocks anywhere you like—locally on the CLI, in your CI pipeline (Jenkins, Github Actions..) , or even across a Kubernetes cluster.
-
📽️ Record-Replay Complex Flows: Keploy can record and replay complex, distributed API flows as mocks and stubs. It's like having a time machine for your tests—saving you tons of time!
-
🎭 Multi-Purpose Mocks: You can also use keploy Mocks, as server Tests!
🐰 Fun fact: Keploy uses itself for testing! Check out our swanky coverage badge:
![]()
Keploy proxy captures and replays ALL(CRUD operations, including non-idempotent APIs) of your app's network interactions.
Take a journey to How Keploy Works? to discover the tricks behind the curtain!
Become a Keploy pro with Keploy Documentation.
Below is a table summarizing the tools needed for both native and Docker installations of Keploy on MacOS, Windows, and Linux:
Operating System | Without Docker | Docker Installation | Prerequisites |
---|---|---|---|
Docker Desktop version must be 4.25.2 or above | |||
- Use WSL wsl --install - Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 |
|||
Linux kernel 5.15 or higher |
On MacOS and Windows, additional tools are required for Keploy due to the lack of native eBPF support.
Integrate Keploy by installing the agent locally. No code-changes required.
curl -O https://raw.githubusercontent.com/keploy/keploy/main/keploy.sh && source keploy.sh
Start your app wit Keploy to convert API calls as Tests and Mocks/Stubs.
keploy record -c "CMD_TO_RUN_APP"
For example, if you're using a simple Python app the CMD_TO_RUN_APP would resemble to python main.py
, for Golang go run main.go
, for java java -jar xyz.jar
, for node npm start
..
keploy record -c "python main.py"
Shut down the databases, redis, kafka or any other services your application uses. Keploy doesn't need those during test.
keploy test -c "CMD_TO_RUN_APP" --delay 10
To integrate with your unit-testing library and see combine test coverage, follow this test-coverage guide.
Reach out to us. We're here to help!
From Go's gopher 🐹 to Python's snake 🐍, we support:
Whether you're a newbie coder or a wizard 🧙♀️, your perspective is golden. Take a peek at our:
- Unit Testing: While Keploy is designed to run alongside unit testing frameworks (Go test, JUnit..) and can add to the overall code coverage, it still generates integration tests.
- Production Lands: Keploy is currently focused on generating tests for developers. These tests can be captured from any environment, but we have not tested it on high volume production environments. This would need robust deduplication to avoid too many redundant tests being captured. We do have ideas on building a robust deduplication system #27
🤔 FAQs
🕵️️ Why Keploy