InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 23 Go Mock Projects
-
keploy
Unit, API & Integration Testing Agent for Developers. Generate tests, mocks/stubs for your APIs that actually work!
Project mention: Systems Correctness Practices at Amazon Web Services | news.ycombinator.com | 2025-05-30Keploy is doing the same thing, in same space - https://github.com/keploy/keploy
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
-
Project mention: Princípios SOLID em GoLang - Dependency Inversion Principle (DIP) | dev.to | 2024-08-03
-
hoverfly
Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
Hoverfly: A lightweight service virtualization tool specializing in API simulation and traffic capture for realistic mocks. It's particularly useful for cloud-native applications and supports CI/CD integration.
-
Another great option is gock, a lib that is also inspired by nock, with a simple and easy API. It works by intercepting any HTTP request made by any http.Client and adding it to a list, so it can check if a mock request exists. If not, an error is returned, unless the real networking mode is on. In that case, the request is done normally.
-
Project mention: Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock | dev.to | 2024-09-11
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
service-pattern-go
Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.
-
-
-
-
-
-
-
-
-
-
-
wiretap
The world's coolest API Validation and compliance tool. Validate APIs against OpenAPI specifications and much more (by pb33f)
During the API development phase, a detailed definition guides developers in implementing endpoints, methods, and data schemas correctly. Various tooling exists to ensure your code conforms to the agreed upon spec - including API frameworks like Huma which allow you to build APIs around a spec, as well as API contract testing tools like Wiretap which look at live traffic to detect violations.
-
go-smtp-mock
SMTP mock server written on Golang. Mimic any 📤 SMTP server behavior for your test environment with fake SMTP server.
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Mock discussion
Go Mock related posts
-
🧪 Uber Mock: El sucesor natural de GoMock que deberías conocer
-
How to Implement Mock APIs for API Testing
-
The best way for testing outbound API calls
-
Testando chamadas para APIs da melhor forma
-
Stubbing HTTP communication in E2E test with Hoverfly
-
Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock
-
Princípios SOLID em GoLang - Dependency Inversion Principle (DIP)
-
A note from our sponsor - InfluxDB
www.influxdata.com | 25 Jun 2025
Index
What are some of the best open-source Mock projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | keploy | 10,236 |
2 | mockery | 6,640 |
3 | go-sqlmock | 6,377 |
4 | hoverfly | 2,418 |
5 | gock | 2,175 |
6 | httpmock | 2,031 |
7 | counterfeiter | 1,051 |
8 | service-pattern-go | 876 |
9 | go-txdb | 718 |
10 | gripmock | 708 |
11 | minimock | 688 |
12 | Mmock | 684 |
13 | killgrave | 550 |
14 | openapi-mock | 505 |
15 | xgo | 405 |
16 | redismock | 316 |
17 | charlatan | 204 |
18 | govcr | 187 |
19 | wiretap | 180 |
20 | go-smtp-mock | 152 |
21 | go-github-mock | 120 |
22 | gomockhandler | 116 |
23 | fauxrpc | 100 |