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. (by testcontainers)

Testcontainers Alternatives

Similar projects and alternatives to Testcontainers

  1. PostgreSQL

    Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. kind

    Kubernetes IN Docker - local clusters for testing Kubernetes

  4. Spring Boot

    Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.

  5. consul

    Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.

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

  7. dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

  8. Minestom

    1.21.3 Lightweight Minecraft server

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Exposed

    Kotlin SQL Framework

  11. testcontainers-go

    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.

  12. junit5

    ✅ The 5th major version of the programmer-friendly testing framework for Java and the JVM

  13. piranha

    Piranha - a modern cloud runtime (by piranhacloud)

  14. testcontainers-dotnet

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

  15. AssertJ

    AssertJ is a library providing easy to use rich typed assertions

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

  17. milkman

    An Extensible Request/Response Workbench

  18. Mockito

    Most popular Mocking framework for unit tests written in Java

  19. GreenMail

    Official master for the Greenmail project

  20. WireMock

    A tool for mocking HTTP services

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

  22. MockServer

    MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Testcontainers alternative or higher similarity.

Testcontainers discussion

Log in or Post with

Testcontainers reviews and mentions

Posts with mentions or reviews of Testcontainers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-11.
  • One Container to Rule Them All - Until It Doesn’t
    3 projects | dev.to | 11 Mar 2025
    There are a handful of ways to start Testcontainers, including JUnit4 annotations, JUnit5 annotations, ApplicationContextInitializer, JDBC URL scheme, and manual container lifecycle control. Let's choose manual control for now as the least "magic" option:
  • Top Resources to Learn Testcontainers
    18 projects | dev.to | 15 Oct 2024
    Repository
  • Testcontainers
    16 projects | news.ycombinator.com | 27 Feb 2024
    except the parent is wrong (at least the Java impl). see:

    https://github.com/testcontainers/testcontainers-java/blob/m...

    https://github.com/testcontainers/testcontainers-java/blob/m...

  • Reasons to Drop Docker for Podman
    6 projects | news.ycombinator.com | 6 Aug 2023
    > I wonder if Rancher Desktop, et al, works with testcontainers.org?

    I don't use testcontainers myself, but it looks like as long as you are using Rancher Desktop >= 1.0.1 you should be just fine.[1]

    [1] https://github.com/testcontainers/testcontainers-java/issues...

  • K1s.me - Simplifying Kubernetes Journey for newbie’s
    1 project | /r/kubernetes | 12 Jul 2023
    Thanks for the feedback. You are right, and there are some other mock-up alternatives as well, a good one for developers https://testcontainers.com/
  • Database Testing with Testcontainers and Kotlin Exposed ORM
    3 projects | dev.to | 29 Jun 2023
    In this article, we will explore how to use Testcontainers and Exposed, a lightweight ORM framework for Kotlin, to create a controlled environment for testing MySQL Database operations.
  • Spring Boot 3.1 RC1 is here - with support for Testcontainers and docker compose
    2 projects | /r/java | 23 Apr 2023
    Unfortunately, it still remains hard to use Testcontainers because of how wedded it is to junit4, five years after the release of junit 5. https://github.com/testcontainers/testcontainers-java/issues/970
  • Spring, SchemaSpy DB docs, and GitHub Pages
    8 projects | dev.to | 12 Mar 2023
    Finally, we put the directory with generated contents (HTML, CSS, JS) into a tarball. Testcontainers library allows to copy files from a container to the OS but not directories. That’s why we need an archive inside the SchemaSpy container.
  • Spring Cloud Gateway 4.0.0-RC2 native example with Testcontainers
    7 projects | dev.to | 8 Dec 2022
    This repository provides a BuildImageTest that uses the buildpack to create a native image. It then tests the native image, using Testcontainers and JUnit. Building the native image with AOT processing, as part of a test, takes minutes not seconds, and should not be part of normal "inner loop" development. So the BuildImageTest is in a separate sourceSet and can be executed independently. This is a very powerful pattern, that I'm just getting started with. I would love to hear your thoughts on this pattern or other alternatives to it.
  • Testcontainers for Hashicorp Consul and Vault
    5 projects | dev.to | 16 Feb 2022
    The list goes on. Check out the full list of Testcontainer modules.
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 18 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic Testcontainers repo stats
13
8,157
9.7
6 days ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Java is
the 8th most popular programming language
based on number of references?