SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Go Mock 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
-
service-pattern-go
Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
-
go-smtp-mock
SMTP mock server written on Golang. Mimic any 📤 SMTP server behavior for your test environment with fake SMTP server.
-
wiretap
The world's coolest API Validation and compliance tool. Validate APIs against OpenAPI specifications and much more (by pb33f)
-
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
Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
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
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.
Many PR about typos fixing or installing GitHub actions to validate spellchecking on various repositories fix typos #4 ccoVeille posted on Apr 15, 2024 Fix typos and style Format README.md file View on GitHub Add Typos GitHub Action #37 ccoVeille posted on Apr 19, 2024 https://github.com/marketplace/actions/typos-action Fixes #28 View on GitHub fix typos #113 ccoVeille posted on Apr 13, 2024 Fix typos in code and tests Fix acronyms and brand names View on GitHub fix typos, brands and acronyms #21 ccoVeille posted on Apr 01, 2024 fix typos in code, test and documentation Fix registered trademark and other acronyms View on GitHub Fix typos in the documentation and code comments #99 ccoVeille posted on Apr 21, 2024 View on GitHub typos suggestion #390 ccoVeille posted on Apr 22, 2024 Check list [X] I have performed a self-review of my code [ ] I have commented my code in hard-to-understand areas [X] I have made corresponding changes to the documentation Description Fix some typos and wordings in README.md Fix headers style Fix exemplī grātiā usage (Latin) Type of change [ ] Bug fix [ ] New feature [ ] Refactor [ ] Breaking change [X] Documentation change Test environment Shell [ ] bash [ ] zsh [ ] fish OS [ ] Linux [ ] Mac OS X [ ] Windows [ ] Others: View on GitHub Fix typo and style #3 ccoVeille posted on Apr 25, 2024 View on GitHub
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.
Go Mock discussion
Go Mock related posts
-
I Write Tests in Go
-
How do you unit-test code that reaches out to the db, without introducing interfaces everywhere?
-
Direction of mockery: absorb different styles of mocks into this project · vektra mockery · Discussion #671
-
Maintainership of Go’s official gomock repo has been transferred to Uber.
-
Uber Now Maintains Gomock
-
grpcmock: Mock gRPC servers dynamically
-
Google Stopped Maintaining GoMock
-
A note from our sponsor - SaaSHub
www.saashub.com | 16 Jun 2024
Index
What are some of the best open-source Mock projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | go-sqlmock | 5,902 |
2 | mockery | 5,757 |
3 | hoverfly | 2,324 |
4 | gock | 2,040 |
5 | httpmock | 1,883 |
6 | counterfeiter | 925 |
7 | service-pattern-go | 812 |
8 | Mmock | 663 |
9 | go-txdb | 630 |
10 | gripmock | 621 |
11 | minimock | 566 |
12 | killgrave | 493 |
13 | openapi-mock | 475 |
14 | redismock | 264 |
15 | xgo | 266 |
16 | charlatan | 201 |
17 | govcr | 165 |
18 | go-smtp-mock | 119 |
19 | gomockhandler | 105 |
20 | go-github-mock | 91 |
21 | wiretap | 79 |
22 | go-localstack | 75 |
23 | timex | 70 |