testcontainers

    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 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.

    automation
    devops
    testing
    docker
    go
    golang
    hacktoberfest
    testcontainers
    Go
    MIT
    5.0K stars
    656 forks
    5.0K GitHub watchers
    Updated Oct 26, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 81 days ago, with 296 contributors on GitHub.

    Gained 37% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a Go package to programmatically create and manage containerized dependencies for automated integration and smoke tests.
    • Simplifies test environment setup and teardown with a clean, easy-to-use API that ensures container resources are properly managed.
    • Use for automating integration tests that require ephemeral databases or services running in containers.
    • Use for smoke testing microservices by spinning up dependent containers dynamically during test execution.
    • Use for continuous integration pipelines to isolate and manage containerized test dependencies in Go projects.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    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.

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

    Excerpt from the testcontainers/testcontainers-go README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    656+33

    Open issues

    199+27

    Compared with peers in Automation

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    testcontainers/testcontainers-go compared with Automation repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vercel-labs/agent-desktop17.0K+13.3K33today
    D4Vinci/Scrapling98.1K+6.9K651 day ago
    Panniantong/Agent-Reach109.3K+3.0K604 days ago
    lexmount/moli22.7K+1.2K552 days ago
    superplanehq/superplane8.8K+435607 days ago
    testcontainers/testcontainers-go5.0K—5681 days ago
    Category median22.7K+3.0K60—

    Also by testcontainers

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description