dockertest VS go-sqlmock

Compare dockertest vs go-sqlmock and see what are their differences.

dockertest

Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. (by ory)

go-sqlmock

Sql mock driver for golang to test database interactions (by DATA-DOG)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
dockertest go-sqlmock
48 19
3,960 5,817
1.8% 1.3%
4.5 5.4
16 days ago 13 days ago
Go Go
Apache License 2.0 GNU General Public License v3.0 or later
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.

dockertest

Posts with mentions or reviews of dockertest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.

go-sqlmock

Posts with mentions or reviews of go-sqlmock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-24.

What are some alternatives?

When comparing dockertest and go-sqlmock you can also consider the following projects:

testcontainers-go - Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

gomock - GoMock is a mocking framework for the Go programming language.

mockaroo - Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!

go-txdb - Immutable transaction isolated sql driver for golang

fake-gcs-server - Google Cloud Storage emulator & testing library.

mockery - A mock code autogenerator for Go

steampipe - Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.

gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽

venom - 🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions

minimock - Powerful mock generation tool for Go programming language

sqlc - Generate type-safe code from SQL

gotests - Automatically generate Go test boilerplate from your source code.