Thursday
Room 7
16:20 - 17:20
(UTC+02)
Talk (60 min)
No More SQLite - How to Write Tests With EF Core Using TestContainers
Integration tests are crucial to ensuring your app's reliability. However, traditional options for writing these with EF Core, such as using SQLite or a real dev database, often introduce challenges both with maintainability and confidence - sometimes even secretly making tests pass with false positives.
This session will offer an alternative, a library called TestContainers, that addresses these challenges. After going through the more common options and the pitfalls of them, I'll introduce the TestContainers library, the benefits it offers, and demonstrate with a coding demo how to implement it in some real integration tests using EF Core.
While this talk will be made with .NET in mind and use examples in C#, the TestContainers library is offered in 10+ languages, and the knowledge can be transferred to other ecosystems. Attendees will be assumed to have basic knowledge of unit and integration testing.