testcontainers/testcontainers-go

Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The...

View on GitHub ↗Jump to charts ↓

testcontainers/testcontainers-go has 5k+ stars and 650+ forks on GitHub, is written in Go, and was last pushed on Oct 18, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 57 minutes ago
Added to GitGenius on March 24th, 2024
Created on July 18th, 2018
Open Issues & Pull Requests: 200 (+0)
GitHub issues: Enabled
Number of forks: 652
Total Stargazers: 5,015 (+0)
Total Subscribers: 21 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.9 days
Mean response time: 92.8 days
90th percentile: 292.8 days
Tracked items: 258

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 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

How this project is maintained

Roughly one issue in three opened in the past year never receives a reply. 90% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 2 days, while "hacktoberfest" waits about 15 months. Only 34% of issues opened in the past year have been closed. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 126
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 482 days
Stale 30+ days: 115
Stale 90+ days: 61

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 1

Top labels

  • bug (239)
  • enhancement (103)
  • feature (53)
  • documentation (27)
  • good first issue (25)
  • hacktoberfest (23)
  • compose (18)
  • chore (14)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Testcontainers for Go is a Go package designed to simplify the creation and cleanup of container-based dependencies for automated integration and smoke tests. The library provides a clean, easy-to-use API that allows developers to programmatically define containers that should run as part of a test suite and automatically clean up those resources when testing is complete. This approach eliminates manual container management and reduces boilerplate code in test setups.

The repository serves as the Go implementation of the broader Testcontainers project, with comprehensive documentation available at golang.testcontainers.org. The project is classified across multiple domains including local development, Docker integration, containerization, testing frameworks, integration testing, microservices testing, and test infrastructure. This broad classification reflects the library's utility across different testing scenarios and development workflows where containerized services are needed for validation.

Activity data shows the project maintains active engagement with its user base. This distribution suggests the project is both actively maintained and responsive to user-reported problems while remaining open to community-driven improvements.

The project's contributor base shows concentrated activity among key maintainers. The repository's presence in overlapping contributor networks with microsoft/vscode, weaviate/weaviate, and microsoft/typescript suggests the library has gained adoption among developers working on significant projects and indicates cross-pollination of ideas and practices across these communities.

The library's focus on programmatic container definition and lifecycle management addresses a specific pain point in Go testing workflows. Rather than requiring developers to manually start and stop containers or rely on external Docker Compose files, Testcontainers for Go enables test code to express its infrastructure dependencies directly. This approach improves test portability, reduces setup complexity, and ensures consistent test environments across different machines and CI/CD pipelines. The emphasis on automatic cleanup prevents resource leaks and orphaned containers that can accumulate during development and testing cycles.

The project's inclusion of Hacktoberfest as a topic indicates active community engagement and welcoming of external contributions. The comprehensive documentation structure, with a dedicated docs directory that powers the official website, reflects a commitment to making the library accessible to new users and providing clear guidance on integration into existing Go projects. The quickstart guide mentioned in the README excerpt serves as an entry point for developers looking to add the dependency to their projects, lowering the barrier to adoption.