MCPcopy Index your code
hub / github.com/testcontainers/testcontainers-go

github.com/testcontainers/testcontainers-go @v0.43.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.43.0 ↗ · + Follow
3,159 symbols 15,937 edges 476 files 1,635 documented · 52% 265 cross-repo links updated 6d agov0.43.0 · 2026-06-19★ 4,906114 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Testcontainers

Main pipeline GoDoc Reference Go Report Card Quality Gate Status License

Open in GitHub Codespaces

Join our Slack

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 clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

You can find more information about Testcontainers for Go at golang.testcontainers.org, which is rendered from the ./docs directory.

Using Testcontainers for Go

Please visit the quickstart guide to understand how to add the dependency to your Go project.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 1,761
Method 939
Struct 341
FuncType 49
Interface 39
TypeAlias 30

Languages

Go100%
TypeScript1%

Modules by API surface

docker.go87 symbols
docker_test.go75 symbols
container.go70 symbols
options.go58 symbols
wait/strategytarget_mock_test.go52 symbols
modules/compose/compose_api.go42 symbols
modules/ollama/local.go39 symbols
modules/compose/compose_local.go36 symbols
lifecycle.go36 symbols
modules/couchbase/couchbase.go35 symbols
modules/compose/compose.go33 symbols
logconsumer_test.go30 symbols

Dependencies from manifests, versioned

cel.dev/exprv0.25.1 · 1×
cloud.google.com/gov0.112.1 · 1×
cloud.google.com/go/bigqueryv1.59.1 · 1×
cloud.google.com/go/bigtablev1.21.0 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/datastorev1.15.0 · 1×
cloud.google.com/go/firestorev1.14.0 · 1×
cloud.google.com/go/longrunningv0.5.5 · 1×
dario.cat/mergov1.0.2 · 1×

Datastores touched

usersCollection · 1 repos
changesCollection · 1 repos
fooCollection · 1 repos
searchCollection · 1 repos
(mysql)Database · 1 repos
(mongodb)Database · 1 repos
mydbDatabase · 1 repos
testcontainerDatabase · 1 repos

For agents

$ claude mcp add testcontainers-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page