Announcement

Free to view yesterday and today
Customer Service: cat_manager

Keploy - Automated API & Integration Test Generation with Mocks

Automatically generate unit, API, and integration tests for developers with mocks/stubs that actually work. Streamline your testing workflow.

Go
Added on 2025年6月19日
View on GitHub
Keploy - Automated API & Integration Test Generation with Mocks preview
10,240
Stars
1,436
Forks
Go
Language

Project Introduction

Summary

This project is a testing agent designed for developers to simplify and automate the creation of unit, API, and integration tests. By recording application interactions, it automatically generates tests and necessary mocks/stubs, significantly accelerating the testing process and ensuring test accuracy.

Problem Solved

Writing comprehensive unit, API, and integration tests, especially with complex external dependencies, is time-consuming and prone to errors. Maintaining accurate mocks and stubs is challenging, leading to flaky tests. This project automates these tasks, reducing manual effort and improving test reliability.

Core Features

Automated Test Generation

Automatically captures API calls and generates executable tests and mock/stub configurations from them.

Traffic Recording & Replay

Seamlessly records and replays application traffic to create realistic test scenarios and mocks.

Dependency Mocking

Provides realistic mocks and stubs for external service dependencies based on recorded traffic.

Tech Stack

Go
Docker
Kubernetes
Linux Kernel Modules

使用场景

Keploy can be used in various scenarios to enhance the testing process for applications and APIs:

Local Development & Testing

Details

Developers can run their application locally with Keploy recording, interact with the application through its API, and Keploy will automatically generate tests and mocks based on the captured traffic.

User Value

Saves significant time on writing tests and setting up mock services during development.

CI/CD Automation

Details

Integrate Keploy into your CI pipeline. When new code is pushed, Keploy can automatically generate/update tests or replay existing tests using recorded mocks to catch regressions.

User Value

Increases test coverage and reliability in CI, enabling faster and safer deployments.

Adding Tests to Legacy Applications

Details

For existing applications with limited test coverage, Keploy can quickly generate a baseline of API tests and dependency mocks by recording traffic in staging or production environments (with caution).

User Value

Rapidly build a test suite for critical legacy services, reducing risk when making changes.

Recommended Projects

You might be interested in these projects

apachepaimon

This project provides a robust and efficient solution for automating key data processing tasks, enabling users to streamline workflows and improve data accuracy. It's designed for developers and data professionals.

Java
28691173
View Details

cryptpadcryptpad

CryptPad is a private and open-source alternative to popular office suites. It offers end-to-end encryption for real-time collaboration on various document types, ensuring your data remains confidential.

JavaScript
6424704
View Details

sonic-netsonic-buildimage

This project provides the scripts and infrastructure necessary to build installable binary images for the SONiC (Software for Open Networking in the Cloud) network operating system. It simplifies the complex process of compiling, packaging, and customizing SONiC images for various hardware platforms.

C
8401576
View Details