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.
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.
Ease of Use
Testcontainers simplifies the setup of complex environments, allowing developers to quickly specify the containers they need without extensive configuration.
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.
Compatibility with CI/CD
Testcontainers can be seamlessly integrated into CI/CD pipelines, enabling automated testing with consistent environments on every build.
Promote Testcontainers. You can add any of these badges on your website.
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
Start Docker Compose with both Ollama and PGVector using Testcontainers. - Source: dev.to / about 1 month ago
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
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
Use a real database. TestContainers works very well. - Source: dev.to / about 2 months ago
Instead, use TestContainers to spin up lightweight, disposable databases. - Source: dev.to / about 2 months ago
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
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
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
I use the word "technology" very generally, but I have Testcontainers in mind:. - Source: dev.to / 3 months ago
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
I tried Testcontainers but still I was getting an error. - Source: dev.to / 4 months ago
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
I've had good success with testcontainers (https://testcontainers.com/) to do that sort of thing. - Source: Hacker News / 5 months ago
You can use the tools like Testcontainers to simulate microservices and verify compatibility in isolation. - Source: dev.to / 6 months ago
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
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
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
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
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
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.
We have collected here some useful links to help you find out if Testcontainers is good.
External links:
Check the traffic stats of Testcontainers on SimilarWeb. The key metrics to look for are: monthly visits, average visit duration, pages per visit, and traffic by country. Moreoever, check the traffic sources. For example "Direct" traffic is a good sign.
Check the "Domain Rating" of Testcontainers on Ahrefs. The domain rating is a measure of the strength of a website's backlink profile on a scale from 0 to 100. It shows the strength of Testcontainers's backlink profile compared to the other websites. In most cases a domain rating of 60+ is considered good and 70+ is considered very good.
Check the "Domain Authority" of Testcontainers on MOZ. A website's domain authority (DA) is a search engine ranking score that predicts how well a website will rank on search engine result pages (SERPs). It is based on a 100-point logarithmic scale, with higher scores corresponding to a greater likelihood of ranking. This is another useful metric to check if a website is good.
The latest comments about Testcontainers on Reddit. This can help you find out how popualr the product is and what people think about it.
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.