26 Resources
Golang mocking Libraries
Go package exposing a simple interface for executing commands, enabling easy mocking and wrapping of executed commands.
go-runner Go package exposing a simple interface for executing commands, enabling easy mocking and wrapping of executed commands. The Runner interface
Run mock server based off an API contract with one command
Run mock server based off an API contract with one command
Mmock is an HTTP mocking application for testing and fast prototyping
Mmock is a testing and fast prototyping tool for developers: Easy and fast HTTP mock server. Download Mmock Create a mock definition. Configure your a
Vfs - Virtual filesystem library written in golang
vfs for golang vfs is library to support virtual filesystems. It provides basic abstractions of filesystems and implementations, like OS accessing the
A language agnostic HTTP mock server for quick stub testing
MockItOut Test external services faster and better with an HTTP stub server. MockItOut is a simple to use HTTP stub server. With a small YAML configur
Library that make mocking of Go functions/methods easy
mockit mockit Notes Usage Argument matcher Capture argument Pausing and restoring a mock Verify a call Update the library Development TODOs Contributi
Example code to demonstrate how to mock external clients via context.Context
Mocking external client libraries using context.Context This code is paired with a blog post: Mocking external client libraries using context.Context
Interface mocking tool for go generate
Interface mocking tool for go generate. What is Moq? Moq is a tool that generates a struct from any interface. The struct can be used in test code as
A local web-server for mocking channel responses
Local Channel Mock This is application is intended to mock the ISO channel during the development of a new integration. Exposed endpoints By default,
A simple and expressive HTTP server mocking library for end-to-end tests in Go.
mockhttp A simple and expressive HTTP server mocking library for end-to-end tests in Go. Installation go get -d github.com/americanas-go/mockhttp Exa
Completely type-safe compile-time mock generator for Go
Mockc Mockc is a completely type-safe compile-time mock generator for Go. You can use it just by writing the mock generators with mockc.Implement() or
Full-featured test framework for Go! Assertions, mocking, input testing, output capturing, and much more! 🍕
testza 🍕 Testza is like pizza for Go - you could life without it, but why should you? Get The Module | Documentation | Contributing | Code of Conduct
Lightweight HTTP mocking in Go (aka golang)
httpmock This library builds on Go's built-in httptest library, adding a more mockable interface that can be used easily with other mocking tools like
A clipboard-based mocking framework for Go that gets out of your way.
A clipboard-based mocking framework for Go that gets out of your way. This tool has been built with inspiration lovingly taken from Moq, and fuelled b
Clock is a small library for mocking time in Go.
clock Clock is a small library for mocking time in Go. It provides an interface around the standard library's time package so that the application can
HTTP mocking to test API services for chaos scenarios
GAOS HTTP mocking to test API services for chaos scenarios Gaos, can create and provide custom mock restful services via using your fully-customizable
Mocking your SQL database in Go tests has never been easier.
copyist Mocking your SQL database in Go tests has never been easier. The copyist library automatically records low-level SQL calls made during your te
mockery - A mock code autogenerator for Golang
mockery - A mock code autogenerator for Golang
A mock code autogenerator for Golang
mockery provides the ability to easily generate mocks for golang interfaces using the stretchr/testify/mock package. It removes the boilerplate coding required to use mocks.
HTTP mocking for Golang
httpmock Easy mocking of http responses from external resources. Install Currently supports Go 1.7 - 1.15. v1 branch has to be used instead of master.
HTTP mocking for Golang
httpmock Easy mocking of http responses from external resources. Install Currently supports Go 1.7 - 1.15. v1 branch has to be used instead of master.
Lightweight service virtualization/API simulation tool for developers and testers
API simulations for development and testing Hoverfly is a lightweight, open source API simulation tool. Using Hoverfly, you can create realistic simul
GoMock is a mocking framework for the Go programming language.
gomock GoMock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other
HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
gock Versatile HTTP mocking made easy in Go that works with any net/http based stdlib implementation. Heavily inspired by nock. There is also its Pyth
A toolkit with common assertions and mocks that plays nicely with the standard library
Testify - Thou Shalt Write Tests ℹ️ We are working on testify v2 and would love to hear what you'd like to see in it, have your say here: https://cutt
Go Interface Mocking Tool
Charlatan Percolate's Go Interface Mocking Tool. Please read our introductory blog post. Installation go get github.com/percolate/charlatan Usage c