What the mock? Testing database applications without mocks
So you’ve got an application that talks to a database. And you’ve got unit tests for your business logic. But you also want to write integration tests to make sure it’s all working together properly. You’ll need to mock the data access layer. Not necessarily! In this talk, we’ll explore how you can use Testcontainers to easily spin up a real database instance in a container for testing. This approach allows for testing more realistic behaviour and catching real-world issues like SQL syntax errors.