What is Keploy?
Keploy is an open-source API test case and data mock generation tool designed to enhance developers' testing processes by achieving 90% test coverage within minutes. It simplifies testing by converting user-traffic into test cases and data stubs, addressing challenges such as manual test writing, dependency chaos, and reproducing production issues for testing and debugging. Keploy enables developers to capture network interactions, automate scenarios, and seamlessly integrate the tool into their workflows for accelerated development processes. It offers features like test and stub generation, test deduplication, and native integration, suitable for team environments. Notable companies such as Pixis, Instaastro, Amazon, and Reliance have trusted and used Keploy for their testing needs.
Who created Keploy?
Keploy was created by an executive member at Maruti Suzuki, as indicated by a testimonial on the platform. The platform was launched on October 18, 2021, and is an open-source API test case and data mock generation tool designed to help developers achieve 90% test coverage rapidly. Keploy aims to simplify testing processes, address common software development challenges, and enhance collaboration among team members. It has garnered recognition from industry leaders like Pixis, Instaastro, Amazon, and others, while also offering active community engagement and technical support.
What is Keploy used for?
- Facilitate end-to-end testing
- Achieve 90% test coverage within minutes
- Convert user-traffic into test cases and data stubs
- Simplify the testing process
- Automate scenarios
- Capture network interactions
- Enhance collaboration
- Provide security and administrative features for team environments
- Challenge test coverage capabilities by sharing application dependencies
- Empower developers by streamlining testing processes and improving test coverage
- Test smart - Build better
- Replicate data from any source
- Manual test writing
- Dependency chaos
- Scattered test environments
- Record and replay complex, distributed API flows as mocks and stubs
- Find redundant tests that don't add to the test coverage
- Merge Keploy tests coverage with unit testing libraries for combined test coverage gating in CI/CD pipelines
- Start Recording Test cases with code-less integration
- Convert API calls to test cases with data mocks
- Simplify testing by capturing network interactions and generating automated tests
- Find redundant tests and automatically detect and remove them
- Empower developers to achieve 90% test coverage within minutes by leveraging artificial intelligence
- Streamline testing processes and improve test coverage
- Capture network interactions, automate scenarios, and seamlessly integrate with workflows
- Enhance collaboration with features like test and stub generation, test deduplication, and native integration
- Provide security and administrative features suitable for team environments
- Improves testing process for Golang projects with Postgres and Redis by quickly identifying and fixing issues through replaying real user interactions
- Unit testing complex systems with realistic test data
- Replicating data from any source
- Automating scenarios and capturing network interactions
- Finding and removing duplicate tests to enhance test coverage
- Works with JUnit, PyTest, Jest, Go-Test in CI/CD for combined test coverage gating
- Adding business value to companies like Maruti Suzuki
- Enhancing collaboration and providing security and administrative features suitable for team environments
- Streamlining testing processes and improving test coverage
- Challenging test coverage capabilities by sharing dependencies of applications and receiving a $100 reward if the tool cannot generate API tests
Who is Keploy for?
- Senior Software Engineer
- Staff Engineer
- Executive Member
How to use Keploy?
To effectively use Keploy, follow these steps:
-
Installation: Integrate Keploy by installing the open-source agent locally using the command:
curl --silent -O -L https://keploy.io/install.sh && source install.sh
-
Recording Test Cases:
- Begin recording by starting your app with Keploy to convert API calls into tests and mocks/stubs.
- Make API calls to your app while Keploy records the interactions.
- Use the command
keploy record -c CMD_TO_RUN_APP
where CMD_TO_RUN_APP is the command to start your app.
-
Testing:
- Cease services like Database, Redis, Kafka during the testing phase as Keploy does not require them.
- Utilize the command
keploy test -c CMD_TO_RUN_APP --delay 10C
to initiate the testing process.
By following these steps, you can harness Keploy's capabilities for streamlined testing, efficient network interaction capturing, and automated test generation. Keploy aids in improving test coverage and accelerating development processes seamlessly. For further details and support, refer to the official Keploy documentation and community resources.