SaaSHub helps you find the best software and product alternatives Learn more →
Testcontainers-go Alternatives
Similar projects and alternatives to testcontainers-go
-
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
-
-
-
-
-
dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
testcontainers-node
Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
-
-
-
-
-
-
Pact JVM
JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
-
-
testcontainers-dotnet
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
-
testcontainers-python
Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
-
Testcontainers
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
testcontainers-go discussion
testcontainers-go reviews and mentions
-
Using testcontainers to improve performance in integration tests
That’s when I found Testcontainers, which is a Go library that allows you to spin up real containers (like Postgres, Redis, etc.) directly from your tests. You don’t need to rely on an external Docker Compose file or start/stop the services manually, everything is handled in the code.
-
Implementing Chat History for AI Applications Using Azure Cosmos DB Go SDK
The sample application includes basic test cases for both Azure Cosmos DB chat history and the main application. It is worth highlighting the use of testcontainers-go to integrate the Azure Cosmos DB Linux-based emulator docker container.
-
Top Resources to Learn Testcontainers
Repository
-
Leverage Your Test Suite With testcontainers-go & docker-compose
At some points, we need some magic to get to the next testing level. It happened to be testcontainers-go. For the sake of this demo, we use the compose module (for further reference, please refer to here). This tool can run the compose file we saw earlier and execute the end-to-end tests against the running containers.
-
Raw-dogging PostgreSQL with pgx and sqlc in Go
With the implementation of testcontainer for go, it will create a postgres container on the fly and run integration test on that database!
- Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock
- Testcontainers-Go: Effortless Container-Based Testing for Go Developers
-
Using short lived Postgres servers for testing
I started to use testcontainers for it, however my biggest problem is that each test needs to start its own container which is slow (right now I have about 20 test cases in my PoC).
testcontainers allows to stop and start containers and to reset their state to a snapshot, but Go implementation seems to have a bug which I reported recently [1]. It's going to be huge when they fix it, as it will make tests much faster.
[1]: https://github.com/testcontainers/testcontainers-go/issues/2...
-
Using test helpers in Go
Let's first look at the original version of the test, in this case, an end-to-end, using testcontainers.
-
Run and test DynamoDB applications locally using Docker and Testcontainers
It supports multiple languages (including Go!) and databases (also messaging infrastructure etc.) - All you need is Docker. Testcontainers for Go makes it simple to programmatically create and clean up container-based dependencies for automated integration/smoke tests. You can define test dependencies as code, run tests and delete the containers once done.
-
A note from our sponsor - SaaSHub
www.saashub.com | 21 May 2025
Stats
testcontainers/testcontainers-go is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of testcontainers-go is Go.
Popular Comparisons
- testcontainers-go VS dockertest
- testcontainers-go VS testcontainers-python
- testcontainers-go VS otj-pg-embedded
- testcontainers-go VS testcontainers-dotnet
- testcontainers-go VS ginkgo
- testcontainers-go VS venom
- testcontainers-go VS integresql
- testcontainers-go VS embedded-postgres
- testcontainers-go VS localstripe
- testcontainers-go VS flyway-spawn-demo
Review ★★★★★ 10/10
I'm the principal maintainer of the library :)