Go Mock

Open-source Go projects categorized as Mock

Top 23 Go Mock Projects

  • go-sqlmock

    Sql mock driver for golang to test database interactions

  • Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
  • mockery

    A mock code autogenerator for Go (by vektra)

  • Project mention: I Write Tests in Go | news.ycombinator.com | 2024-04-10

    I'm far too lazy to write mocks by hand in go. You can generate a mock for a given interface with mockery https://github.com/vektra/mockery

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • hoverfly

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

  • gock

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

  • httpmock

    HTTP mocking for Golang

  • counterfeiter

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

  • service-pattern-go

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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Mmock

    Mmock is an HTTP mocking application for testing and fast prototyping

  • go-txdb

    Immutable transaction isolated sql driver for golang

  • gripmock

    gRPC Mock Server

  • minimock

    Powerful mock generation tool for Go programming language

  • killgrave

    Simple way to generate mock servers written in Go

  • openapi-mock

    OpenAPI mock server with random data generation

  • Project mention: How to Automatically Consume RESTful APIs in Your Frontend | dev.to | 2024-01-25

    Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.

  • redismock

    Redis client Mock

  • charlatan

    Go Interface Mocking Tool

  • govcr

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

  • go-smtp-mock

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

  • xgo

    Enable function trap in go, provide trace and mock to help write and debug unit test faster (by xhd2015)

  • Project mention: Show HN: Variable Patching in Golang | news.ycombinator.com | 2024-04-07
  • gomockhandler

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

  • go-github-mock

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

  • go-localstack

    Go Wrapper for using localstack

  • wiretap

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

  • Project mention: How to Build a Perfect API Description | dev.to | 2024-02-23

    If you cannot find something to integrate with your existing test suite, consider using Wiretap which can run as a proxy, and handle contract testing of the requests/responses that come through it in testing or staging environments.

  • timex

    A test-friendly replacement for golang's time package [managed by soy-programador] (by cabify)

  • 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 related posts

Index

What are some of the best open-source Mock projects in Go? This list will help you:

Project Stars
1 go-sqlmock 5,827
2 mockery 5,608
3 hoverfly 2,307
4 gock 2,014
5 httpmock 1,864
6 counterfeiter 918
7 service-pattern-go 775
8 Mmock 660
9 go-txdb 619
10 gripmock 610
11 minimock 556
12 killgrave 484
13 openapi-mock 467
14 redismock 250
15 charlatan 200
16 govcr 163
17 go-smtp-mock 113
18 xgo 103
19 gomockhandler 102
20 go-github-mock 90
21 go-localstack 75
22 wiretap 71
23 timex 70

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com