Software Alternatives, Accelerators & Startups
Table of contents
  1. Videos
  2. Social Mentions
  3. Comments

Testcontainers

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

Testcontainers Reviews and details

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.
  • 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 / 10 days 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 / 15 days 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 / 16 days 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 / about 2 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 / 2 months ago
  • When E2E Tests In NestJS Gives Me a Headache
    I tried Testcontainers but still I was getting an error. - Source: dev.to / 2 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 / 3 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 / 3 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 / 4 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 / 5 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 / 5 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 / 6 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 / 7 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 / 7 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 / 7 months ago
  • OrbStack: The fast, light, and easy way to run Docker containers and Linux
    I'm not sure what you mean by prod server in this context, we deploy to k8s. We use testcontainers[1] that run locally on the laptop via IntelliJ. There's a bunch of integration tests that take a good while to boot via docker-desktop. If these tests can be sped up significantly then it's worth that $8 a month. I'd like to remind you that technically docker desktop isn't free, either. Nor is pushing tests to run... - Source: Hacker News / 7 months ago
  • Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync
    I recently experimented with using pglite for API integration tests in one of my side projects. It worked pretty well and has much better DX than using something like testcontainers[0] to spin up postgres running in docker. [0]: https://testcontainers.com. - Source: Hacker News / 8 months ago
  • Using short lived Postgres servers for testing
    Echoing the other (dead?) comment here, https://testcontainers.com/ is a great tool for this. In our core makefile we have `make pytest` to run standalone unit tests, and then `make pytest_db` to run full database tests using a docker container. The test suite fires up a completely fresh DB, runs migrations against it, and then the test suite proceeds as usual. On a per-module basis a simple fixture is used to... - Source: Hacker News / 9 months ago
  • SpringAI, llama3 and pgvector: bRAGging rights!
    To support the exploration, I've developed a simple Retrieval Augmented Generation (RAG) workflow that works completely locally on the laptop for free. If you're interested, you can find the code itself here. Basically, I've used Testcontainers to create a Postgres database container with the pgvector extension to store text embeddings and an open source LLM with which I send requests to: Meta's llama3 through... - Source: dev.to / 9 months ago
  • Revolutionize Your Unit Testing with Testcontainers and Docker
    Testcontainers is a very neat open source framework/project I just discovered. It enables developers to create unit tests using throwaway, lightweight instances of e.g. a database running in Docker containers. - Source: dev.to / 10 months ago
  • How Enabling Slow Query Log Enhances Postgres Observability
    However, if you run PostgreSQL only for a very short period, for instance during your automated tests, then you may have no technical way of reconfiguring it. This may be the case with Testcontainers. Typically, you may run some initialization code just before your actual test suite to initialize the dependencies like storage emulators or database servers. Testcontainers takes care of running them as Docker... - Source: dev.to / 11 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

This is an informative page about Testcontainers. You can review and discuss the product 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.