Top 10 Go Mocking Projects
A toolkit with common assertions and mocks that plays nicely with the standard libraryProject mention: How do you control behaviour in mocked interface ? | reddit.com/r/golang | 2022-01-21
I’m a fan of https://github.com/stretchr/testify
A mock code autogenerator for Golang (by vektra)Project mention: How do you control behaviour in mocked interface ? | reddit.com/r/golang | 2022-01-21
I use mockery to generate mocks based on my interfaces: https://github.com/vektra/mockery
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Lightweight service virtualization/API simulation tool for developers and testers
HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽Project mention: Testing methods with HTTP calls? | reddit.com/r/golang | 2021-11-19
Interface mocking tool for go generateProject mention: How do you control behaviour in mocked interface ? | reddit.com/r/golang | 2022-01-21
I like the way of matryer/moq a lot. Basically, it generates a func for each of the methods of an interface, therefore the behaviour is clear to everyone without too much abstraction.
Virtual filesystem library written in golang
A library to aid unittesting code that uses Golang's Github SDKProject mention: Building GitHub Apps with Golang | dev.to | 2022-01-17
So far we've been testing the app with localtunnel, which is nice for quick ad-hoc tests against live API, but it doesn't replace proper unit tests. To write unit tests for this app, we need to mock-out the API to avoid being dependent on the external service. To do so, we can use go-github-mock:
OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
A language agnostic HTTP mock server for quick stub testing
Library that make mocking of Go functions/methods easy (by pasdam)Project mention: Unit Testing in Golang | reddit.com/r/golang | 2021-02-01
mockcompose generates mocking implementation for Go classes, interfaces and functionsProject mention: mockcompose to generate mocking implementation for Go classes, interfaces and functions | reddit.com/r/golang | 2021-07-06
Part of reason that I went ahead to build mockcompose was for to improve test coverage of an existing project without major refactoring. Another reason is for completeness of a mocking tool to cover all possible aspects in unit-test scenarios that Go technically allows. It was meant to use it with Go best practices in mind.
Go Mocking related posts
How do you control behaviour in mocked interface ?
5 projects | reddit.com/r/golang | 21 Jan 2022
Testing methods with HTTP calls?
1 project | reddit.com/r/golang | 19 Nov 2021
What mocking framework do you prefer?
6 projects | reddit.com/r/golang | 23 Oct 2021
mockcompose to generate mocking implementation for Go classes, interfaces and functions
3 projects | reddit.com/r/golang | 6 Jul 2021
Mockcompose to mock Go classes,interfaces and functions
1 project | news.ycombinator.com | 16 Jun 2021
1 project | reddit.com/r/golang | 20 Mar 2021
How to mock `jwk.Fetch` in my unit tests?
1 project | reddit.com/r/golang | 2 Mar 2021
What are some of the best open-source Mocking projects in Go? This list will help you:
|6||vfs for golang||406|
Are you hiring? Post a new remote job listing for free.