Skip to content

Testcontainers

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

Docker-sponsored Projects

Community 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?

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:

Introducing Testcontainers Desktop

Pinned Loading

  1. 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.

    Java 8.3k 1.7k

  2. testcontainers-dotnet Public

    A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

    C# 4.1k 329

  3. 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…

    Go 4.3k 565

  4. 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.

    TypeScript 2.3k 235

  5. 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.

    Python 1.9k 327

  6. testcontainers-rs Public

    A library for integration-testing against docker containers from within Rust.

    Rust 913 163

Repositories

Showing 10 of 55 repositories
  • testcontainers-elixir Public

    Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

    Elixir 130 MIT 21 10 (2 issues need help) 7 Updated Aug 18, 2025
  • 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.

    TypeScript 2,255 MIT 235 21 (4 issues need help) 7 Updated Aug 18, 2025
  • testcontainers-rs-modules-community Public

    Community maintained modules for Testcontainers for Rust

    Rust 143 MIT 64 9 (3 issues need help) 10 Updated Aug 17, 2025
  • testcontainers-dotnet Public

    A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

    C# 4,112 MIT 328 48 (3 issues need help) 25 Updated Aug 16, 2025
  • 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.

    Java 8,296 MIT 1,726 408 (22 issues need help) 98 Updated Aug 16, 2025
  • 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.

    Python 1,928 Apache-2.0 327 108 (4 issues need help) 31 Updated Aug 14, 2025
  • testcontainers-rs Public

    A library for integration-testing against docker containers from within Rust.

    Rust 913 Apache-2.0 163 21 (5 issues need help) 14 Updated Aug 11, 2025
  • testcontainers-native Public

    Testcontainers for C/C++/Swift and other native projects, built on the top of Testcontainers for Go

    Go 31 MIT 4 18 (1 issue needs help) 5 Updated Aug 10, 2025
  • Docker.DotNet Public Forked from dotnet/Docker.DotNet

    🐳 .NET (C#) Client Library for Docker API

    C# 29 MIT 454 3 (1 issue needs help) 0 Updated Aug 9, 2025
  • 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.

    Go 4,273 MIT 565 104 (4 issues need help) 50 Updated Aug 1, 2025