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.
We have collected here some useful links to help you find out if Testcontainers is good.
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.
Codec round-trips are pure, so you can unit-test encrypt-then-decrypt without a database at all. For the real thing โ values actually flowing through Postgres โ skunk-crypt's own suite uses Testcontainers to spin up a throwaway postgres:16, which is a good pattern to copy:. - Source: dev.to / about 1 month ago
The test job also mounts the host Docker socket so Testcontainers can start sibling containers (for example Spark) from within the job container. - Source: dev.to / 3 months ago
Spins up the actual database (use Testcontainers โ it runs in CI just fine). - Source: dev.to / 4 months ago
Stacks? Should not be much for modern laptop. But it would be great if tool like this could manage the ports (allocate unique set for each worktree, add those to .env) For some cases test-containers [1] is an option as well. Iโm using them to integration tests that need Postgres. [1] https://testcontainers.com/. - Source: Hacker News / 7 months ago
This is particularly valuable for integration testing frameworks like Testcontainers, which provide waiting strategies to ensure containers are ready before tests run. Instead of using arbitrary sleep delays or log messages (which are unreliable since they may change), you can configure a waiting strategy that will check if the emulator Docker container is listening to the "8080" health check port. - Source: dev.to / 7 months ago
Complimentary to unit testing, I've had success validating message-based services by creating local integration tests using Testcontainers. This type of testing gives us the ability to quickly verify the the flow and various asynchronous interactions inside our service without requiring a full-blown deployment or relying upon setting up complex external dependencies during development. - Source: dev.to / 10 months ago
Fortunately, there is an awesome project for that named TestContainers. - Source: dev.to / about 1 year ago
The Testcontainers library is an open-source tool that lets you create containers during test execution. The idea is for your application's test dependencies to be part of the code, avoiding the need for mocks and even local dependency installation. Another big advantage is that it makes it easier to achieve test isolation and replicability among developers. The tool supports various programming languages like Go,... - Source: dev.to / 12 months ago
Testcontainers solves this problem elegantly by providing a way to run lightweight, throwaway instances of databases, message brokers, web servers, and other services directly within your test suite. Instead of complex setup scripts or shared test environments, you can spin up real services in Docker containers that exist only for the duration of your tests. The core value proposition is compelling: write tests... - Source: dev.to / about 1 year ago
This article covers how to use Docker for integration testing in an ASP.NET Core Web API project. We'll use the Testcontainers library to spin up SQL Server containers for our integration tests. - Source: dev.to / 12 months ago
A great alternative is testcontainers + testcontainers Cloud. Testcontainers is a library available in many languages that allows you to start and stop Docker containers during your tests, making it possible to get good isolation between tests. Testcontainers Cloud is a service that allows you to run said containers on a remote infrastructure, as opposed to running them on your own infrastructure, which, if you... - Source: dev.to / about 1 year ago
Thereโs also https://testcontainers.com/ not sure about the speed difference but testcontainers has never felt slow to me when using it from node js unittests. - Source: Hacker News / about 1 year ago
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 / about 1 year ago
Start Docker Compose with both Ollama and PGVector using Testcontainers. - Source: dev.to / about 1 year 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 / over 1 year 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 / over 1 year ago
Use a real database. TestContainers works very well. - Source: dev.to / over 1 year ago
Instead, use TestContainers to spin up lightweight, disposable databases. - Source: dev.to / over 1 year 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 / over 1 year 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 / over 1 year 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 / over 1 year ago
Do you know an article comparing Testcontainers to other products?
Suggest a link to a post with product alternatives.
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.