Curse of the Pharaohs: Rethinking the Testing Pyramid with Testcontainers
summary
Argues the testing pyramid needs rethinking for microservices and shows Testcontainers (Java library, MIT, started 2015, used by ~20,000 projects) as the practical tool: it programmatically spins Docker dependencies, uses dynamic port binding, performs wait-for-ready probes, and offers modules for Postgres, Kafka, browsers, k3s and cloud emulators. Demo shows per-method containers take ~4 seconds each but a singleton container pattern drops tests to milliseconds. Emphasizes avoiding shared resources and using real dependencies for more reliable integration tests.
AI-written summary · about
