
Testcontainers for Java
Java library for JUnit tests that starts throwaway instances of databases, Selenium browsers and other services in Docker containers.
testcontainers.com/repositorydocs
Testcontainers for Java is the Java build of the Testcontainers project, which gives tests throwaway instances of services running in Docker containers. The Java docs cover its use with JUnit 4, JUnit 5 and Spock. Each specialised module has a separate JAR.
Worth knowing
Tests need a Docker environment. The docs name Docker as a prerequisite and name Testcontainers Cloud as one way to get a compatible runtime; Testcontainers Cloud is a separate product, and this software does not include it.
Identity
Rendering and deploy
Releases
Adoption
Sources
- 2026-11-16: links
testcontainers.com/ - 2026-11-16: links, Runtime, Categories, Install with
java.testcontainers.org/ - 2026-11-16: links, License, Written in, GitHub stars
api.github.com/repos/testcontainers/testcontainers-java - 2026-11-16: Maintainer, License model
raw.githubusercontent.com/testcontainers/testcontainers-java/main/LICENSE - 2026-11-17: Install with
raw.githubusercontent.com/testcontainers/testcontainers-java/main/docs/index.md - 2026-11-16: Current major version, Last release
api.github.com/repos/testcontainers/testcontainers-java/releases - 2026-11-16: First release
search.maven.org/solrsearch/select?q=g:org.testcontainers+AND+a:testcontainers&core=gav&rows=200&wt=json - 2026-11-16: Contributors
api.github.com/repos/testcontainers/testcontainers-java/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/repo1.maven.org/packages/org.testcontainers%3Atestcontainers