Software Alternatives, Accelerators & Startups

Testcontainers

Testcontainers is a modern Java library that comes with the exclusive support of Junit tests.

Testcontainers Reviews and Details

This page is designed to help you find out whether Testcontainers is good and if it is the right choice for you.

Screenshots and images

  • Testcontainers Landing page
    Landing page //
    2023-10-07

Features & Specs

  1. Isolation

    Testcontainers provides a high level of isolation for tests by using Docker containers, ensuring that each test runs in a clean environment without interference from the previous tests.

  2. Realistic Testing

    By using actual instances of services like databases or message brokers, Testcontainers allow for more realistic integration and end-to-end testing scenarios.

  3. Ease of Use

    Testcontainers simplifies the setup of complex environments, allowing developers to quickly specify the containers they need without extensive configuration.

  4. Cross-Platform

    As Testcontainers rely on Docker, they are inherently cross-platform and can be used on any system that supports Docker, such as Windows, Mac, and Linux.

  5. Compatibility with CI/CD

    Testcontainers can be seamlessly integrated into CI/CD pipelines, enabling automated testing with consistent environments on every build.

Badges

Promote Testcontainers. You can add any of these badges on your website.

SaaSHub badge
Show embed code
SaaSHub badge
Show embed code

Videos

Testcontainers – From Zero to Hero

Testcontainers: a Year-in-review (Kevin Wittek)

Testcontainers: a Year-in-review (Kevin Wittek)

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about Testcontainers and what they use it for.
  • Testing MongoDB Atlas Search Java Apps Using TestContainers
    Even though we’re going to be using the Java TestContainers project here, TestContainers is available for lots of languages and platforms. You can check it out on their website. - Source: dev.to / 28 days ago
  • Spring Boot AI Evaluation Testing
    Start Docker Compose with both Ollama and PGVector using Testcontainers. - Source: dev.to / about 1 month ago
  • How to test Umbraco against a real database
    In my last post about Test Driven Development, I briefly touched on testing with a real database and how I used TestContainers to do it. - Source: dev.to / about 1 month ago
  • Ask HN: Go libraries for managing Docker container pools and executing commands
    Our use case is to execute test scripts in a sandbox mode. This is multi host and multi region setup. We might run millions of test scripts per day. One of our engineers found https://testcontainers.com. We find it interesting and it seems like it won’t maintain container live. Instead, it start and remove the container for each test. We might need to implement lock mechanism to run only maximum number of... - Source: Hacker News / about 2 months ago
  • Learning TDD by doing: Umbraco & EF Core
    Use a real database. TestContainers works very well. - Source: dev.to / about 2 months ago
  • 🍃Are You Making These Mistakes in Spring Boot Testing? Best Practices You Need to Know! 🍃
    Instead, use TestContainers to spin up lightweight, disposable databases. - Source: dev.to / about 2 months ago
  • Simplifying Test Data Generation with Drizzle ORM
    At our company, we run tests using an actual database with Testcontainers instead of mocking the database during test execution. To conduct such tests, we need to prepare test data in advance. However, creating test data can become cumbersome, leading to reduced readability and increased maintenance efforts. - Source: dev.to / 2 months ago
  • One Container to Rule Them All - Until It Doesn’t
    When working with Testcontainers I found a couple of things that are not very obvious at first glance. Especially when you are just starting to use Testcontainers. Let's check them out. - Source: dev.to / 2 months ago
  • Unlocking the Power of Testcontainers: Scalable, Reliable, and Efficient Testing
    Testcontainers is a popular open-source library that allows developers to run lightweight, throwaway containers for integration testing. It provides real dependencies, such as databases, message brokers, and browsers, inside Docker containers, ensuring consistency across different environments. - Source: dev.to / 2 months ago
  • Pull request testing on Kubernetes: testing locally and on GitHub workflows
    I use the word "technology" very generally, but I have Testcontainers in mind:. - Source: dev.to / 3 months ago
  • The death of mocks by Testcontainers
    Writing tests can often feel like a daunting task, especially when you find yourself juggling mocks for internal and external services. Flaky tests, unrealistic mocks, and the constant fear of “what if this breaks in production?” can make the process incredibly stressful. I recently had to write integration tests for a service built with NestJs and having to mock the database layer (repository) didn't sit right... - Source: dev.to / 4 months ago
  • When E2E Tests In NestJS Gives Me a Headache
    I tried Testcontainers but still I was getting an error. - Source: dev.to / 4 months ago
  • Database mocks are just not worth it
    Just use Testcontainers (https://testcontainers.com/). We use it for quickly spinning up a temporary postgres instance to run our db tests against. - Source: Hacker News / 5 months ago
  • Database mocks are just not worth it
    I've had good success with testcontainers (https://testcontainers.com/) to do that sort of thing. - Source: Hacker News / 5 months ago
  • 10 Ways to Effectively Manage Spring Cloud Dependencies
    You can use the tools like Testcontainers to simulate microservices and verify compatibility in isolation. - Source: dev.to / 6 months ago
  • Hierarchical data with PostgreSQL and Spring Data JPA
    I'm using the recently released Postgres 17 with Testcontainers. This gives me a repeatable setup to work with. For example, we can use initialisation SQL scripts to automate the creation of a Postgres database with the necessary tables and populate with some test data. - Source: dev.to / 7 months ago
  • Smurf: Beyond the Test Pyramid
    I have found testcontainers to be an excellent way to write integration/end-to-end tests as easily as unit tests. It takes care of the chore of setting up test environments, though it won’t solve all of your problems. I took this approach when testing Posit Package Manager and it made writing tests significantly easier, and, IMO, fun. https://testcontainers.com/. - Source: Hacker News / 7 months ago
  • Join Testcontainers at Devoxx Belgium 2024
    At Docker, we believe in providing developers with the right tools to enhance their productivity and streamline their workflows. Testcontainers, an open-source library that supports lightweight, disposable Docker containers for testing, does just that. - Source: dev.to / 8 months ago
  • Integration tests on Symfony with Testcontainers
    The big advantages of Testcontainers in relation to Docker compose or other way of container orchestration is you can code the provisioning of container, and today already have support to Golang, Java, .NET, Node.js, Python, Rust, various other languages and of course, PHP too! - Source: dev.to / 8 months ago
  • TestContainers for integration testing .Net applications
    To avoid these kinds of problems, it's possible to create these resources using Docker containers through the TestContainers library. - Source: dev.to / 8 months ago
  • Integration Testing in .NET: A Practical Guide to Tools and Techniques
    Sometimes, testing against a "real" service like a database or message broker is crucial. Testcontainers is a popular library that allows us to run Docker containers during our test run. - Source: dev.to / 9 months ago

Do you know an article comparing Testcontainers to other products?
Suggest a link to a post with product alternatives.

Suggest an article

Testcontainers discussion

Log in or Post with

Is Testcontainers good? This is an informative page that will help you find out. Moreover, you can review and discuss Testcontainers here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.