Testing the integration with a database the right way - introduction to Testcontainers
Persisting data in a database is one of the most common tasks that applications have to perform, and it’s so crucial that without it the rest of the app is often useless. It’s also an area that’s notoriously hard to test. In this blog post, you can read about several ways of doing it and some problems they come with. Finally, I’m going to share with you how I use Testcontainers to test the integration with a database and why I think it’s the best way to do it....