keploy / keploy
- ΡΡΠ΅Π΄Π°, 2 ΠΎΠΊΡΡΠ±ΡΡ 2024β―Π³. Π² 00:00:02
Shadow Test generation for Developers. Generate tests and stubs for your application that actually work!
π The must-have tool for developers in the AI-Gen era π
Keploy is developer-centric API testing tool that creates tests along with built-in-mocks, faster than unit tests.
Keploy not only records API calls, but also records database calls and replays them during testing, making it easy to use, powerful, and extensible.
π° Fun fact: Keploy uses itself for testing! Check out our swanky coverage badge: Β
Keploy's new launched world's first unit test generator(ut-gen) implementation of Meta LLM research paper, it understands code semantics and generates meaningful unit tests, aiming to:
Automate unit test generation (UTG): Quickly generate comprehensive unit tests and reduce the redundant manual effort.
Improve edge cases: Extend and improve the scope of tests to cover more complex scenarios that are often missed manually.
Boost test coverage: As codebase grows, ensuring exhaustive coverage should become feasible.
Become a Keploy pro with Keploy Documentation.
Integrate Keploy by installing the agent locally. No code-changes required.
curl --silent -O -L https://keploy.io/install.sh && source install.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.
Setup and run keploy quickly without any installation on your local machine:
Reach out to us. We're here to help!
From Go's gopher πΉ to Python's snake π, we support:
So you and your organisation are using Keploy? Thatβs great. Please add yourselves to this list, and we'll send you goodies! π
We are happy and proud to have you all as part of our community! π
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!
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!
Whether you're a newbie coder or a wizard π§ββοΈ, your perspective is golden. Take a peek at our:
β€οΈ Code of Conduct
π€ FAQs
π΅οΈβοΈ Why Keploy
βοΈ Installation Guide
π Contribution Guide