---
title: "#testcontainers articles | Hashnode"
description: "Explore 41 articles tagged #testcontainers on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/testcontainers"
---

Tag

# #testcontainers

41 posts · 1 followers

[Carmelo Buelvas Comas](https://hashnode.com/@cbuelvasc) · [1d ago](https://hashnode.com/posts/swapping-adapters-postgresql-without-touching-the-core/6af790e7712755e4b8ae07fc)

### [Swapping Adapters: PostgreSQL Without Touching the Core](https://cbuelvasc.hashnode.dev/swapping-adapters-postgresql-without-touching-the-core?utm_source=hashnode&utm_medium=feed)

TL;DR Hexagonal architecture is a promise: you can replace an adapter without touching the core. In this part I keep that promise by swapping the in-memory repository for PostgreSQL, and I prove it w

6 min read · [cbuelvasc.hashnode.dev](https://cbuelvasc.hashnode.dev/swapping-adapters-postgresql-without-touching-the-core?utm_source=hashnode&utm_medium=feed)

[Ashutosh Kumar](https://hashnode.com/@askuma) · [Jun 26](https://hashnode.com/posts/localstack-floci-the-complete-2026-migration-guide-part6/6a3e64766c850481e1589922)

### [LocalStack → Floci: The Complete 2026 Migration Guide](https://askuma.hashnode.dev/localstack-floci-the-complete-2026-migration-guide-part6?utm_source=hashnode&utm_medium=feed)

Part 6/6: Testcontainers Integration — Java, Python, Go, hybrid docker-compose, and the rollback plan

8 min read · [askuma.hashnode.dev](https://askuma.hashnode.dev/localstack-floci-the-complete-2026-migration-guide-part6?utm_source=hashnode&utm_medium=feed)

[Zikani Nyirenda Mwase](https://hashnode.com/@zikani) · [May 30](https://hashnode.com/posts/how-to-populate-a-postgresql-test-container-in-go-for-integration-testing/6a1d03a126a787c771063f52)

### [How to populate a PostgreSQL test container in Go for integration testing](https://code.zikani.me/how-to-populate-a-postgresql-test-container-in-go-for-integration-testing?utm_source=hashnode&utm_medium=feed)

In this article I will show you how to setup a minimal test using testcontainers-go. We are going to extend some ideas from my last article on generating fake data to to insert random data into the te

6 min read · [code.zikani.me](https://code.zikani.me/how-to-populate-a-postgresql-test-container-in-go-for-integration-testing?utm_source=hashnode&utm_medium=feed)

[Michael Nelson](https://hashnode.com/@mnelson) · [May 17](https://hashnode.com/posts/test-independence/6a0a401f3104e2aff0e98eed)

### [Test Independence](https://michael-nelson.co.uk/test-independence?utm_source=hashnode&utm_medium=feed)

Isolating Tests With AutoFixture, xUnit3, and Testcontainers

7 min read · [michael-nelson.co.uk](https://michael-nelson.co.uk/test-independence?utm_source=hashnode&utm_medium=feed)

[Jeremy Longshore](https://hashnode.com/@jeremylongshore) · [May 7](https://hashnode.com/posts/the-two-postgres-bugs-the-tests-caught-a-real-db-integration-test-case-studyn/69fc923aa0e40af9c8e5d5f3)

### [The Two Postgres Bugs the Tests Caught: A Real-DB Integration Test Case Study\\n](https://jeremylongshore.hashnode.dev/the-two-postgres-bugs-the-tests-caught-a-real-db-integration-test-case-studyn?utm_source=hashnode&utm_medium=feed)

Thesis A "no mocks" testcontainers policy caught two production-fatal Postgres bugs in one test run. The first would have shipped silently and failed at runtime on every fresh tenant. The second would have shipped to staging and waited there for a re...

12 min read · [jeremylongshore.hashnode.dev](https://jeremylongshore.hashnode.dev/the-two-postgres-bugs-the-tests-caught-a-real-db-integration-test-case-studyn?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/the-two-postgres-bugs-the-tests-caught-a-real-db-integration-test-case-studyn/69fc923aa0e40af9c8e5d5f3)

[Destiny Erhabor](https://hashnode.com/@CaesarSage) · [Apr 11](https://hashnode.com/posts/how-to-mock-and-contract-test-python-microservices-with-microcks-testcontainers-a-complete-guide/69dacf4cc8e5007ddbf591fa)

### [How to Mock and Contract Test Python Microservices with Microcks Testcontainers — A Complete Guide](https://caesarsage.hashnode.dev/how-to-mock-and-contract-test-python-microservices-with-microcks-testcontainers-a-complete-guide?utm_source=hashnode&utm_medium=feed)

Your unittest.mocks are lying to you. Replace them with spec-driven API mocking and contract testing using Microcks Testcontainers for Python

19 min read · [caesarsage.hashnode.dev](https://caesarsage.hashnode.dev/how-to-mock-and-contract-test-python-microservices-with-microcks-testcontainers-a-complete-guide?utm_source=hashnode&utm_medium=feed)

[Vitali Haradkou](https://hashnode.com/@Vitalicset) · [Mar 26](https://hashnode.com/posts/playwright-labs-testcontainers/69c586d110e664c5da1e9555)

### [Stop Mocking Your Database: Real Containers in Playwright Tests with @playwright-labs/fixture-testcontainers](https://vitalicset.hashnode.dev/playwright-labs-testcontainers?utm_source=hashnode&utm_medium=feed)

A deep dive into @playwright-labs/fixture-testcontainers — a Playwright fixture that brings real Docker containers into your tests with automatic cleanup

5 min read · [vitalicset.hashnode.dev](https://vitalicset.hashnode.dev/playwright-labs-testcontainers?utm_source=hashnode&utm_medium=feed)

[DevTools Guide](https://hashnode.com/@devtoolsguide) · [Mar 3](https://hashnode.com/posts/testcontainers-real-databases-and-services-in-your-integration-tests/69a656756fba014af0642f87)

### [Testcontainers: Real Databases and Services in Your Integration Tests](https://devtoolsguide.hashnode.dev/testcontainers-real-databases-and-services-in-your-integration-tests?utm_source=hashnode&utm_medium=feed)

Testcontainers: Real Databases and Services in Your Integration Tests The biggest lie in software testing is the mock. You mock your database, your cache, your message queue, and your external APIs. Your tests pass. Then you deploy, and the real Pos...

7 min read · [devtoolsguide.hashnode.dev](https://devtoolsguide.hashnode.dev/testcontainers-real-databases-and-services-in-your-integration-tests?utm_source=hashnode&utm_medium=feed)

[DevTools Guide](https://hashnode.com/@devtoolsguide) · [Mar 3](https://hashnode.com/posts/database-testing-and-local-development-tools/69a65644c872f520f2137639)

### [Database Testing and Local Development Tools](https://devtoolsguide.hashnode.dev/database-testing-and-local-development-tools?utm_source=hashnode&utm_medium=feed)

Database Testing and Local Development Tools Database testing is the most neglected part of most test suites. Teams write hundreds of unit tests with mocked data but never test their actual queries against a real database. When migrations fail in pro...

7 min read · [devtoolsguide.hashnode.dev](https://devtoolsguide.hashnode.dev/database-testing-and-local-development-tools?utm_source=hashnode&utm_medium=feed)

[Tech Insights Hub](https://hashnode.com/@JohnMikes) · [Feb 12](https://hashnode.com/posts/integration-testing-testcontainers-docker/698e3f5547d29e40f25fd856)

### [Integration Testing: TestContainers Docker](https://topperblog.hashnode.dev/integration-testing-testcontainers-docker?utm_source=hashnode&utm_medium=feed)

Why Traditional Integration Testing Fails Modern Systems The conventional approach of maintaining long-running test databases or using in-memory alternatives breaks down under current architectural demands. Shared test databases create state pollutio...

9 min read · [topperblog.hashnode.dev](https://topperblog.hashnode.dev/integration-testing-testcontainers-docker?utm_source=hashnode&utm_medium=feed)
