Go Mocking

Open-source Go projects categorized as Mocking

Top 14 Go Mocking Projects

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • Project mention: What 3rd-party libraries do you use often/all the time? | /r/golang | 2023-12-01

    github.com/stretchr/testify

  • 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 ༼ʘ̚ل͜ʘ̚༽

  • moq

    Interface mocking tool for go generate (by matryer)

  • Project mention: vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works. | /r/golang | 2023-07-11
  • apitest

    A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.

  • Project mention: Seeking API Ideas to Test the E2E Testing Framework | /r/golang | 2023-10-20

    Currently, I am developing an E2E testing framework called go-spectest/spectest. Spectest is a package forked from steinfletcher/apitest, and I have been gradually adding its unique features. To enhance spectest further, I believe it's best to actually test APIs.

  • vfs for golang

    Virtual filesystem library written in golang

  • 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
  • go-github-mock

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

  • go-sdk

    Official Keploy Go SDK 🔵 (by keploy)

  • mocha

    Build Mock APIs in Go (by vitorsalgado)

  • mockc

    Completely type-safe compile-time mock generator for Go

  • mockcompose

    mockcompose generates mocking implementation for Go classes, interfaces and functions

  • mockitout

    A language agnostic HTTP mock server for quick stub testing

  • gokka

    A small Go mocking library powered by Cue

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

Index

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

Project Stars
1 Testify 21,981
2 mockery 5,599
3 hoverfly 2,307
4 gock 2,014
5 moq 1,763
6 apitest 738
7 vfs for golang 464
8 go-github-mock 89
9 go-sdk 42
10 mocha 40
11 mockc 32
12 mockcompose 15
13 mockitout 11
14 gokka 3

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