Skip to content

Testcontainers

What is Testcontainers?

Testcontainers is an open source framework for providing throwaway, lightweight instances of databases, message brokers, web browsers, or just about anything that can run in a Docker container.

Implementations

Testcontainers is available for the following languages:

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 8k 1.6k

  2. testcontainers-dotnet testcontainers-dotnet Public

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

    C# 3.7k 262

  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 3.5k 472

  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 1.9k 181

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

  6. testcontainers-rs testcontainers-rs Public

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

    Rust 697 133

Repositories

Showing 10 of 67 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
  • 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
  • community-module-registry Public

    Testcontainers Community Module Registry

    testcontainers/community-module-registry’s past year of commit activity
    15 24 0 5 Updated Sep 4, 2024
  • 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/testcontainers-python’s past year of commit activity
    Python 1,509 Apache-2.0 281 76 (4 issues need help) 30 Updated Sep 3, 2024
  • 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
  • moby-ryuk Public

    Schedule Moby/Docker containers cleanup after specific delay.

    testcontainers/moby-ryuk’s past year of commit activity
    Go 182 MIT 33 7 8 Updated Sep 2, 2024
  • helloworld Public

    A Docker image to support Testcontainers' self-test suites

    testcontainers/helloworld’s past year of commit activity
    Go 7 MIT 8 0 5 Updated Sep 1, 2024
  • dind-drone-plugin Public

    Plugin for Drone CI v0.8+ to enable use of Testcontainers using Docker-in-Docker

    testcontainers/dind-drone-plugin’s past year of commit activity
    Shell 31 Apache-2.0 19 5 1 Updated Sep 1, 2024
  • testcontainers-rs-modules-community Public

    Community maintained modules for Testcontainers for Rust

    testcontainers/testcontainers-rs-modules-community’s past year of commit activity
    Rust 68 MIT 38 7 (3 issues need help) 5 Updated Aug 31, 2024
  • 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 1,851 MIT 181 28 (1 issue needs help) 7 Updated Aug 31, 2024