I’m currently migrating my ASP.NET Core app from .NET Core 2.2 to Core 3.0 Preview 9. I'm struggling to get integration tests working with Entity Framework Core 3.0 Preview 9 InMemory DB provider in ASP.NET Core 3.0 Preview 9. I followed Microsoft's documentation "Integration tests in ASP.NET Core" which shows the approach of how to use a customize the WebApplicationFactory.
The problem what I'm facing is:
The integration test isn't using the InMemory DB provider from the customized the WebApplicationFactory.
I create a super simple web API that is using the Entity Framework Core and an SQLite database. This repo contains the same application base on ASP.NET Core 2.2 and EF Core 2.2 which works perfectly fine.
Here the link to the repo: https://github.com/stevo-knievo/IntegrationTestDotNetCore3.0
I tried for hours - Any suggestions are more than welcome.
Thanks in advance!