TestContainers is a fascinating technology that allows you to spin up docker containers programmatically, so you can recreate situations in your tests using real infrastructure components like databases instead of using mocks.
Using TestContainers in Scala with Spark for real unit testing
· 5 min read