testcontainers/testcontainers-java

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or...

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 35 minutes ago
Added to GitGenius on March 24th, 2024
Created on April 12th, 2015
Open Issues & Pull Requests: 629 (+0)
GitHub issues: Enabled
Number of forks: 1,939
Total Stargazers: 8,750 (+0)
Total Subscribers: 132 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 14.0 days
Mean response time: 420.3 days
90th percentile: 1488.4 days
Tracked items: 519

Maintainer activity

2 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 7, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

How this project is maintained

About 9% of issues opened in the past year have never received a reply. 93% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "type/feature" is answered fastest, typically in about 5 days, while "resolution/acknowledged" waits about 44 months. 64% of issues opened in the past year have been closed, leaving a working backlog. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 415
New in 7 days: 2
Closed in 7 days: 2
Avg open age: 1,518 days
Stale 30+ days: 400
Stale 90+ days: 375

Recent activity

Opened in 7 days: 2
Closed in 7 days: 2
Comments in 7 days: 2
Events in 7 days: 3

Top labels

  • type/bug (676)
  • resolution/acknowledged (288)
  • stale (282)
  • type/enhancement (194)
  • type/question (172)
  • type/feature (145)
  • resolution/invalid (120)
  • help wanted (81)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Testcontainers is a Java library designed to simplify integration testing by providing lightweight, disposable Docker container instances for common services. The library integrates directly with JUnit tests, allowing developers to spin up databases, Selenium web browsers, and other containerized services on demand during test execution. Rather than relying on mock objects or pre-configured test environments, Testcontainers enables tests to run against real service instances that are created fresh for each test run and automatically cleaned up afterward.

The library supports a wide range of common databases and services through dedicated modules, making it straightforward to test against PostgreSQL, MySQL, MongoDB, and other popular data stores. Beyond databases, Testcontainers can provision Selenium containers for browser-based testing, as well as any other service capable of running in Docker. This flexibility makes it particularly valuable for microservices architectures and complex integration scenarios where testing against actual service instances rather than mocks provides significantly higher confidence in test results.

The project is distributed through Maven Central, making it easily accessible to Java developers. The codebase is primarily written in Java and targets the JVM ecosystem, with particular emphasis on JUnit compatibility. The library has become a standard tool in the Java testing ecosystem, with documented usage across Spring Boot projects and other major frameworks. The project maintains comprehensive documentation at java.testcontainers.org to guide users through setup and usage patterns.

GitGenius activity tracking reveals that the repository maintains active engagement with its user base.

The project's maintenance is concentrated among a small core team. This focused maintainer group has successfully managed the project's growth and community engagement. The repository shares contributors with major projects including Spring Boot, Visual Studio Code, and Trino, indicating its importance within the broader Java and open-source ecosystems.

The library is classified across multiple domains reflecting its broad applicability: integration testing, Docker containerization, CI/CD pipelines, test automation, microservices, and local development environments. This classification underscores how Testcontainers addresses a fundamental need in modern software development where containerized services have become standard infrastructure. The project's copyright notices acknowledge contributions from Richard North as original author, with additional copyright holders for specialized modules like the MS SQL Server module from G DATA Software AG and the Hashicorp Vault module from Capital One Services, reflecting community contributions of domain-specific functionality.