devtools

testcontainers-go: Easy Integration Testing

Simplify automated testing with testcontainers-go, ideal for founders and developers using Go.
4,945 stars626 forksGoGuide quality 8/10Updated 8/11/2026100% free · open source
What it does

Testcontainers-go simplifies automated testing by programmatically creating and cleaning up container-based dependencies for integration and smoke tests in Go applications.

When to use it
  • When you need to test database integrations without affecting the main database
  • When you want to ensure your application works with different versions of a dependency
  • When you need to test your application in a isolated, ephemeral environment
Ready-to-paste prompt
Run `go test -v ./examples/mysql` to see an example of testing a MySQL database integration
Heads up: Make sure you have Docker installed and running on your machine, as testcontainers-go relies on Docker to create and manage containers
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/testcontainers-go && curl -fsSL https://workflowstacks.com/api/skills/testcontainers-go/claude-skill -o ~/.claude/skills/testcontainers-go/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How testcontainers-go: Easy Integration Testing works
Codeflow
Free to inspect

Testcontainers-go: Easy Integration Testing is a very large Go project (~61k lines across 573 code files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, MIT license, has a test suite.

Size
Very large codebase
~61k lines · 573 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Go
No API keys detected
Go 98%Shell 1%Makefile 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    modulegen/main.go
    Where the program starts running
  3. 3
    go.mod
    Dependencies and the commands it exposes
  4. 4
    internal/version.go
    Inside internal/ — the main logic begins here
  5. 5
    examples/Makefile
    A worked example — copy this to get going
What's in each folder
internal/Core code — the actual logic19 files
modules/Sub-packages / plugins660 files
docs/Documentation174 files
examples/Examples you can copy5 files
modulegen/Folder40 files
wait/Folder39 files
testdata/Folder37 files
scripts/Helper scripts6 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
testcontainers
Language
Go
Category
devtools
Published
7/18/2018

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.