Testcontainers
Testcontainers is 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. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 28
- age_days: 4161
- days_rel: 135
- days_push: 7
- n_releases_24m: 16
Adoption not part of the score
8720 stars · 1914 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Testcontainers is a family of libraries (Java, Go, .NET, Rust, and more) that provides lightweight, throwaway Docker containers for use in tests, such as databases, message brokers, and Selenium browsers. It lets developers define test dependencies as code and run reliable integration tests against real services instead of mocks or in-memory fakes.
Use cases
- spin up a throwaway postgres database for integration tests
- run integration tests against real services instead of mocks
- test database interactions in junit with docker containers
- bootstrap selenium web browsers for automated browser tests
- provision message brokers like redis or kafka for local testing
- make ci test pipelines deterministic with isolated dependencies
When to choose
- you need integration tests against real databases, brokers, or browsers
- you want deterministic, isolated test environments without shared state
- you're tired of maintaining mocks or in-memory substitutes that diverge from production
- you work in java, go, .net, python, node.js, or rust and have docker available
When to avoid
- your environment cannot run docker (e.g., restricted CI or no daemon)
- you only need fast unit tests with no external dependencies
- container startup overhead is unacceptable for your test suite latency
- you need to test against managed cloud services rather than local containers
Facets
library · maturity stable
testing e2e-testing container-runtime developer-tools testing developer-tools databases jvm go dotnet python rust cross-platform integration-testing docker-containers junit test-dependencies throwaway-instances selenium message-brokers containers devops nodejs docker
7 sources
- readme: https://github.com/testcontainers/testcontainers-java · fetched 2026-08-28 · aad5dd088f9e
- homepage: https://testcontainers.org · fetched 2026-08-29 · 18acadcdfe93
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-dotnet · fetched 2026-08-29 · cb0404881f62
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-nodejs · fetched 2026-08-29 · b5585c2d107d
- site_page: https://testcontainers.com/getting-started · fetched 2026-08-29 · 5d1bff396e32
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-java · fetched 2026-08-29 · 5ed6e2fb39fd
- site_page: https://testcontainers.com/guides/getting-started-with-testcontainers-for-go · fetched 2026-08-29 · 04b5ff0e4bfc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| testcontainers/testcontainers-java | main | 93 |
| testcontainers/testcontainers-go | sdk | 94 |
| testcontainers/testcontainers-dotnet | sdk | 95 |
| testcontainers/testcontainers-rs | sdk | 98 |
For agents
markdown · JSON · MCP: product_card(name="testcontainers/testcontainers-java")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem