FindSoftware

Testcontainers for Java

Java library for JUnit tests that starts throwaway instances of databases, Selenium browsers and other services in Docker containers.

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

Status
Active
Maintainer
Richard North4
First release
20157

Rendering and deploy

Install with
maven, gradle, jitpack25

Releases

Current major version
26
Last release
2026-04-206

Adoption

GitHub stars
8,7643
Contributors
4418
Dependent repositories
9,1349
Dependent packages
1,6329

Why these figures do not compare

Sources

  1. 2026-11-16: links
    testcontainers.com/
  2. 2026-11-16: links, Runtime, Categories, Install with
    java.testcontainers.org/
  3. 2026-11-16: links, License, Written in, GitHub stars
    api.github.com/repos/testcontainers/testcontainers-java
  4. 2026-11-16: Maintainer, License model
    raw.githubusercontent.com/testcontainers/testcontainers-java/main/LICENSE
  5. 2026-11-17: Install with
    raw.githubusercontent.com/testcontainers/testcontainers-java/main/docs/index.md
  6. 2026-11-16: Current major version, Last release
    api.github.com/repos/testcontainers/testcontainers-java/releases
  7. 2026-11-16: First release
    search.maven.org/solrsearch/select?q=g:org.testcontainers+AND+a:testcontainers&core=gav&rows=200&wt=json
  8. 2026-11-16: Contributors
    api.github.com/repos/testcontainers/testcontainers-java/contributors?per_page=1
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/repo1.maven.org/packages/org.testcontainers%3Atestcontainers

Last reviewed · Updated · Listed since Edit on GitHubThis page as markdownas JSON