SaaSHub helps you find the best software and product alternatives Learn more →
Top 14 Go Mocking Projects
-
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.
-
hoverfly
Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
-
apitest
A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
github.com/stretchr/testify
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
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
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.
Go Mocking related posts
- I Write Tests in Go
- Direction of mockery: absorb different styles of mocks into this project · vektra mockery · Discussion #671
- vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works.
- Why elixir over Golang
- Go: Write Mock Test cases using Mockery and
- Mocking unexported interfaces?
- Is gomock still maintained and recommended?
-
A note from our sponsor - SaaSHub
www.saashub.com | 23 Apr 2024
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