Source

Testcontainers for Java


p. “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.”

p. “use a containerized instance of a MySQL, PostgreSQL or Oracle database to test your data access layer code for complete compatibility”

p. “running your application in a short-lived test mode with dependencies, such as databases, message queues or web servers.”

p. “use containerized web browsers, compatible with Selenium, for conducting automated UI tests.”

p. “you get a video recording of each test session, or just each session where tests failed.”

This is something that I didn't know about Testcontainers (supports containerized web browser compatibile with Selenium)

p. “To avoid specifying the version of each dependency, you can use a BOM or Bill Of Materials.

Using Maven you can add the following to dependencyManagement section in your pom.xml”