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.

.NET
Database
Testing

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.

Daniel Ward

Daniel is a Microsoft .NET MVP and software consultant at Lean TECHniques. He helps teams deliver high-quality software while adopting modern practices such as effective CI/CD, automated testing, AI usage, and product management. With experience spanning multiple industries, including finance, retail, and agriculture, he has served as a technical coach, agile coach, and tech lead, with a primary background as a software developer. Outside of work, he enjoys playing piano and guitar, swing dancing, and game development.