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 software consultant at Lean TECHniques who helps teams deliver high quality software. He works with teams to adopt various agile and lean practices, such as effective CI/CD, automated testing, and product management. With experience in developing software and consulting teams across several industries including financial, retail, and agriculture, he has fulfilled roles including technical coach, agile coach, tech lead, with a primary background as a software developer. He finds fulfillment in his work by working with others to understand their individual problems and working together to improve their products and professional enjoyment. The .NET ecosystem is where he is most comfortable and finds the most enjoyment.

He also enjoys playing piano, swing dancing, and his own personal programming projects in his free time, including game development, for which he has a company called Nightcap Games that he has released one game under.