Testcontainers
Website · Guides · Slack · Twitter
What is Testcontainers?
Testcontainers is a set of open source libraries that provides easy and lightweight APIs for bootstrapping local development and test dependencies with real services wrapped in Docker containers. Using Testcontainers, you can write tests that depend on the same services you use in production without mocks or in-memory services.
Implementations
Projects
- Testcontainers for .NET
- Testcontainers for C/C++ (and other native languages)
- Testcontainers for Clojure
- Testcontainers for Elixir
- Testcontainers for Go
- Testcontainers for Haskell
- Testcontainers for Java
- Testcontainers for Node.js
- Testcontainers for PHP
- Testcontainers for Python
- Testcontainers for Ruby
- Testcontainers for Rust
- Testcontainers for Scala
Incubating Projects
Modules Catalog
Testcontainers offers modules with preconfigured implementations for popular services such as databases, message brokers, and more. Find the full list of modules in the Testcontainers Module Catalog. If you own a Testcontainers module implementation, please submit it to the catalog by creating a pull request to this repository.
Getting Started
To get started with Testcontainers, please refer to the What is Testcontainers, and why should you use it? guide. We recommend you to start with the Getting Started guide.
How to start?
- Getting started with Testcontainers for .NET
- Getting started with Testcontainers for Go
- Getting started with Testcontainers for Java
- Getting started with Testcontainers for Node.js
- Getting started with Testcontainers for C/C++
- Getting started with Testcontainers for OCaml
Testcontainers Desktop
Testcontainers Desktop is a free companion app for the open source Testcontainers libraries that enriches the Testcontainers user-experience makes local development and testing with real dependencies even simpler. Read more about Testcontainers Desktop in the documentation.
Try it following the Simple local development with Testcontainers Desktop guide.
Or watch the quick video introduction:
Pinned Loading
-
testcontainers-java testcontainers-java Public
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.
-
testcontainers-dotnet testcontainers-dotnet Public
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
-
testcontainers-go testcontainers-go Public
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 t…
-
testcontainers-node testcontainers-node Public
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.
-
testcontainers-python testcontainers-python Public
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-rs testcontainers-rs Public
A library for integration-testing against docker containers from within Rust.
Repositories
Showing 10 of 58 repositories-
Docker.DotNet
Public
Forked from
dotnet/Docker.DotNet
🐳 .NET (C#) Client Library for Docker API
testcontainers/Docker.DotNet's past year of commit activity C# 84 MIT 476 7 (1 issue needs help) 1 Updated Nov 29, 2026 -
testcontainers-node
Public
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.
testcontainers/testcontainers-node's past year of commit activity TypeScript 2,652 MIT 291 67 27 Updated Nov 29, 2026 -
testcontainers-go
Public
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.
testcontainers/testcontainers-go's past year of commit activity Go 5,038 MIT 660 129 (1 issue needs help) 74 Updated Nov 29, 2026 -
testcontainers-dotnet
Public
A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
testcontainers/testcontainers-dotnet's past year of commit activity C# 4,379 MIT 366 29 (1 issue needs help) 16 Updated Nov 27, 2026 -
testcontainers-java
Public
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.
testcontainers/testcontainers-java's past year of commit activity Java 8,773 MIT 1,966 421 (21 issues need help) 229 Updated Nov 26, 2026 -
testcontainers-rs
Public
A library for integration-testing against docker containers from within Rust.
testcontainers/testcontainers-rs's past year of commit activity Rust 1,145 Apache-2.0 205 21 (3 issues need help) 20 Updated Nov 23, 2026 -
community-module-registry
Public
Testcontainers Community Module Registry
testcontainers/community-module-registry's past year of commit activity 34 76 1 16 Updated Nov 19, 2026 -
testcontainers-php
Public
https://www.testcontainers.org implementation for PHP
testcontainers/testcontainers-php's past year of commit activity PHP 216 MIT 38 15 2 Updated Nov 15, 2026 -
testcontainers-rs-modules-community
Public
Community maintained modules for Testcontainers for Rust
testcontainers/testcontainers-rs-modules-community's past year of commit activity Rust 181 MIT 94 20 (3 issues need help) 22 Updated Nov 9, 2026 -
moby-ryuk
Public
Schedule Moby/Docker containers cleanup after specific delay.
testcontainers/moby-ryuk's past year of commit activity Go 252 MIT 42 7 15 Updated Oct 21, 2026
