Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Top 23 Go Mock Projects
-
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
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Project mention: Princípios SOLID em GoLang - Dependency Inversion Principle (DIP) | dev.to | 2024-08-03
-
hoverfly
Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
In order to support requests to HTTPS sites Hoverfly comes with a bundled SSL certificate. However, as this is a testing tool, this certificate is self-signed, and needs to be marked as "trusted" before the applications using the proxy will attempt to connect to secure sites.
-
-
Project mention: Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock | dev.to | 2024-09-11
-
-
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
-
-
-
-
-
-
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.
-
-
-
-
-
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)
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.
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Mock discussion
Go Mock related posts
-
Stubbing HTTP communication in E2E test with Hoverfly
-
Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock
-
Princípios SOLID em GoLang - Dependency Inversion Principle (DIP)
-
Go mock
-
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
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 11 Dec 2024
Index
What are some of the best open-source Mock projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | mockery | 6,191 |
2 | go-sqlmock | 6,166 |
3 | hoverfly | 2,364 |
4 | gock | 2,114 |
5 | httpmock | 1,947 |
6 | counterfeiter | 1,006 |
7 | service-pattern-go | 858 |
8 | Mmock | 680 |
9 | go-txdb | 672 |
10 | gripmock | 663 |
11 | minimock | 649 |
12 | killgrave | 523 |
13 | openapi-mock | 496 |
14 | xgo | 370 |
15 | redismock | 286 |
16 | charlatan | 203 |
17 | govcr | 177 |
18 | go-smtp-mock | 130 |
19 | wiretap | 125 |
20 | gomockhandler | 111 |
21 | go-github-mock | 104 |
22 | fauxrpc | 81 |
23 | go-localstack | 78 |