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 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.2k 1.7k

  2. testcontainers-dotnet testcontainers-dotnet Public

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

    C# 4k 312

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

    Go 4k 539

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

    TypeScript 2.1k 228

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

    Python 1.8k 309

  6. testcontainers-rs testcontainers-rs Public

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

    Rust 861 151

Repositories

Showing 10 of 68 repositories
  • 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,014 MIT 312 43 (1 issue needs help) 24 Updated Apr 23, 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.

    testcontainers/testcontainers-java’s past year of commit activity
    Java 8,197 MIT 1,699 405 (22 issues need help) 392 Updated Apr 23, 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.

    testcontainers/testcontainers-go’s past year of commit activity
    Go 4,002 MIT 539 96 (4 issues need help) 45 Updated Apr 23, 2025
  • testcontainers-rs-modules-community Public

    Community maintained modules for Testcontainers for Rust

    testcontainers/testcontainers-rs-modules-community’s past year of commit activity
    Rust 124 MIT 58 8 (3 issues need help) 7 Updated Apr 19, 2025
  • 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# 20 MIT 444 4 (3 issues need help) 1 Updated Apr 17, 2025
  • moby-ryuk Public

    Schedule Moby/Docker containers cleanup after specific delay.

    testcontainers/moby-ryuk’s past year of commit activity
    Go 210 MIT 36 5 8 Updated Apr 16, 2025
  • testcontainers-ruby Public

    Testcontainers for Ruby

    testcontainers/testcontainers-ruby’s past year of commit activity
    Ruby 151 MIT 19 8 1 Updated Apr 15, 2025
  • community-module-registry Public

    Testcontainers Community Module Registry

    testcontainers/community-module-registry’s past year of commit activity
    20 41 1 2 Updated Apr 15, 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.

    testcontainers/testcontainers-node’s past year of commit activity
    TypeScript 2,129 MIT 228 21 (5 issues need help) 6 Updated Apr 15, 2025
  • testcontainers-rs Public

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

    testcontainers/testcontainers-rs’s past year of commit activity
    Rust 861 Apache-2.0 151 16 (3 issues need help) 8 Updated Apr 7, 2025