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)
Cucumber
Cucumber for the JVM (by cucumber)
Testcontainers | Cucumber | |
---|---|---|
13 | 1 | |
8,217 | 2,745 | |
0.6% | 0.3% | |
9.5 | 9.3 | |
7 days ago | 5 days ago | |
Java | Java | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Testcontainers
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
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
Repository
-
Testcontainers
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
> 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
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
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
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
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
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
The list goes on. Check out the full list of Testcontainer modules.
Cucumber
Posts with mentions or reviews of Cucumber.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-11-08.
-
Strategies to simplify your BDD step definitions
There is some debate on whether the regular method form or the lambda one is better. There are both personal preferences and practical arguments (e.g. dependency injection) put on the table, and there has even been some discussion on replacing Cucumber’s Java8 library with an alternative solution.
What are some alternatives?
When comparing Testcontainers and Cucumber you can also consider the following projects:
Mockito - Most popular Mocking framework for unit tests written in Java
Gatling - Modern Load Testing as Code
GreenMail - Official master for the Greenmail project
Spock - The Enterprise-ready testing and specification framework.
WireMock - A tool for mocking HTTP services
Apache JMeter - Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services