Go Mock

Open-source Go projects categorized as Mock

Top 23 Go Mock Projects

  1. 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-30

    Keploy is doing the same thing, in same space - https://github.com/keploy/keploy

  2. 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.

    InfluxDB logo
  3. mockery

    A mock code autogenerator for Go (by vektra)

  4. go-sqlmock

    Sql mock driver for golang to test database interactions

    Project mention: Princípios SOLID em GoLang - Dependency Inversion Principle (DIP) | dev.to | 2024-08-03
  5. hoverfly

    Lightweight service virtualization/ API simulation / API mocking tool for developers and testers

    Project mention: How to Implement Mock APIs for API Testing | dev.to | 2025-04-07

    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.

  6. gock

    HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

    Project mention: The best way for testing outbound API calls | dev.to | 2025-02-06

    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.

  7. httpmock

    HTTP mocking for Golang

    Project mention: Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock | dev.to | 2024-09-11
  8. counterfeiter

    A tool for generating self-contained, type-safe test doubles in go

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. service-pattern-go

    Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.

  11. go-txdb

    Immutable transaction isolated sql driver for golang

  12. gripmock

    gRPC Mock Server

  13. minimock

    Powerful mock generation tool for Go programming language

  14. Mmock

    Mmock is an HTTP mocking application for testing and fast prototyping

  15. killgrave

    Simple way to generate mock servers written in Go

  16. openapi-mock

    OpenAPI mock server with random data generation

  17. xgo

    All-in-one go testing library (by xhd2015)

  18. redismock

    Redis client Mock

  19. charlatan

    Go Interface Mocking Tool

  20. govcr

    HTTP mock for Golang: record and replay HTTP/HTTPS interactions for offline testing

  21. wiretap

    The world's coolest API Validation and compliance tool. Validate APIs against OpenAPI specifications and much more (by pb33f)

    Project mention: Mastering API Definitions: A Comprehensive Guide | dev.to | 2024-12-19

    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.

  22. go-smtp-mock

    SMTP mock server written on Golang. Mimic any 📤 SMTP server behavior for your test environment with fake SMTP server.

  23. go-github-mock

    A library to aid unittesting code that uses Golang's Github SDK

  24. gomockhandler

    Mr. gomockhandler is the clever and more agile manager of golang/mock (uber/mock) 👔

  25. fauxrpc

    Easily start a fake gRPC/gRPC-Web/Connect/REST server from protobufs

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Mock discussion

Log in or Post with

Go Mock related posts

  • 🧪 Uber Mock: El sucesor natural de GoMock que deberías conocer

    1 project | dev.to | 7 Jun 2025
  • How to Implement Mock APIs for API Testing

    2 projects | dev.to | 7 Apr 2025
  • The best way for testing outbound API calls

    6 projects | dev.to | 6 Feb 2025
  • Testando chamadas para APIs da melhor forma

    7 projects | dev.to | 6 Feb 2025
  • Stubbing HTTP communication in E2E test with Hoverfly

    1 project | dev.to | 6 Nov 2024
  • Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock

    4 projects | dev.to | 11 Sep 2024
  • Princípios SOLID em GoLang - Dependency Inversion Principle (DIP)

    1 project | dev.to | 3 Aug 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 25 Jun 2025
    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 →

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

Sponsored
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.
www.influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?