Hacker ApprovedDepartments

Testcontainers

Hacker Approved

Ranked 4 of 8 testing frameworks by recommenders

Starts real databases and services in Docker containers for tests, so people skip mocks and in-memory stand-ins. Main caveat: some worry about images pulled from Docker Hub.

Starts real databases and services in Docker containers for tests, so people skip mocks and in-memory stand-ins. Main caveat: some worry about images pulled from Docker Hub.

17 people gave an opinion

recommend it
14
criticize it
3
approval share
82%
Each figure is one person. RecommendsCriticizes

Recommended in 8 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 14 people recommend itNeeds 10 or more, met.
  • 4.7 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 8 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Runs tests against real databases

    “Testcontainers are great for tests in particular when you don't want to use some mocked in-memory DB”

    Comment from 19 Aug 2026 in “PostgreSQL for Everything”

    “because it's not fully Postgres, I've switched entirely to TestContainers”

    Comment from 5 Jan 2026 in “Databases in 2025: A Year in Review”

    “I'm using them for integration tests that need Postgres.”

    Comment from 29 Dec 2025 in “Show HN: Superset – Terminal to run 10 parallel coding agents”
  • Starts real services for integration tests

    “It uses Testcontainers to start and autowire runtime deps (postgres, redis, keycloak, etc.).”

    Comment from 25 Feb 2026 in “Show HN: Django Control Room – All Your Tools Inside the Django Admin”

    “introduce Testcontainers and load testing tools and anything else that makes sense”

    Comment from 17 Aug 2026 in “Amodei Re. Regulation”

    “always run tests running real infra like testcontainers”

    Comment from 13 May 2026 in “Learning Software Architecture”

What people warn about

Each mark is one comment

  • Images pulled from Docker Hub

    “people find out testcontainers or whatever is pulling from docker hub rather than the company registry”

    Comment from 16 May 2026 in “'No Way to Prevent This,' Says Only Package Manager Where This Regularly Happens”

Other testing frameworks people recommend

The four most recommended other testing frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Testcontainers compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Mockito191359%34 yrs4 owners—
cargo-nextest18195%3——
Vitest17868%8—Approved
TestcontainersThis page14382%8—Approved
pytest12571%9—Approved
See all 8 testing frameworks, ranked

What people said

17 of the 19 comments that mention it, newest first. Each links to the original comment.

“Testcontainers are great for tests in particular when you don't want to use some mocked in-memory DB”

RecommendsComment from 19 Aug 2026 in “PostgreSQL for Everything”

“introduce Testcontainers and load testing tools and anything else that makes sense”

RecommendsComment from 17 Aug 2026 in “Amodei Re. Regulation”

“It's saved a massive amount of time waiting for my tests to run over the years”

RecommendsComment from 1 Aug 2026 in “Pgtestdb's template cloning approach to testing is fast”

“introduced Testcontainers to actually do proper DB tests”

RecommendsComment from 24 Jul 2026 in “How Do We Stop Vibe Coding?”

“testcontainers is great for ensuring multiple agents can run tests that don't conflict”

RecommendsComment from 7 Jun 2026 in “Harness engineering: Leveraging Codex in an agent-first world”

“people find out testcontainers or whatever is pulling from docker hub rather than the company registry”

MixedComment from 16 May 2026 in “'No Way to Prevent This,' Says Only Package Manager Where This Regularly Happens”

“always run tests running real infra like testcontainers”

RecommendsComment from 13 May 2026 in “Learning Software Architecture”

“you can't use testcontainers”

CriticizesComment from 4 May 2026 in “I am worried about Bun”

“cool to see testcontainers for integration tests”

RecommendsComment from 29 Mar 2026 in “Show HN: Grafana TUI – Browse Grafana dashboards in the terminal”

“It's just too much hassle to replicate cloud environments locally”

CriticizesComment from 24 Mar 2026 in “Local Stack Archived their GitHub repo and requires an account to run”

“It uses Testcontainers to start and autowire runtime deps (postgres, redis, keycloak, etc.).”

RecommendsComment from 25 Feb 2026 in “Show HN: Django Control Room – All Your Tools Inside the Django Admin”

“test containers are not the way.”

CriticizesComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“because it's not fully Postgres, I've switched entirely to TestContainers”

RecommendsComment from 5 Jan 2026 in “Databases in 2025: A Year in Review”

“I'm using them for integration tests that need Postgres.”

RecommendsComment from 29 Dec 2025 in “Show HN: Superset – Terminal to run 10 parallel coding agents”

“testcontainers is glue that can use that existing container runtime setup”

RecommendsComment from 29 Dec 2025 in “Stepping down as Mockito maintainer after 10 years”

“our application recovers to the reset database state seamlessly”

RecommendsComment from 23 Dec 2025 in “Instant database clones with PostgreSQL 18”

“I’ve had incredible success with testcontainers for local unit-testing”

RecommendsComment from 4 Dec 2025 in “PGlite – Embeddable Postgres”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.