golang-table-tests-with-testify-mock
This repo shows how to test and mock multiple dependencies using table-driven tests with testify-mock in Golang (by jurabek)
mockit
Library that make mocking of Go functions/methods easy (by pasdam)
Our great sponsors
golang-table-tests-with-testify-mock | mockit | |
---|---|---|
1 | 1 | |
13 | 16 | |
- | - | |
1.8 | 4.1 | |
about 3 years ago | 12 months ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
golang-table-tests-with-testify-mock
Posts with mentions or reviews of golang-table-tests-with-testify-mock.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Table-driven tests with multiple dependency mocking
I created an example of a writing unit tests with mocks using a table-driven approach.
mockit
Posts with mentions or reviews of mockit.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Unit Testing in Golang
A different approach to mocking in Go https://github.com/pasdam/mockit that is more similar to JavaScript and Mockito (Java).
What are some alternatives?
When comparing golang-table-tests-with-testify-mock and mockit you can also consider the following projects:
mockery - A mock code autogenerator for Go
httpmock - HTTP mocking for Golang
hoverfly - Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
go-txdb - Immutable transaction isolated sql driver for golang
gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
go-sqlmock - Sql mock driver for golang to test database interactions
minimock - Powerful mock generation tool for Go programming language
mockitout - A language agnostic HTTP mock server for quick stub testing
mockserver - Super slim & blazing fast mock server to replace the Java/NPM counterpart mockserver
Mmock - Mmock is an HTTP mocking application for testing and fast prototyping
monkey - Monkey patching in Go