How to use SQL Server database in integration tests?

Andrii Shylin 221 Reputation points
2023-06-27T11:11:50.5733333+00:00

I have an Asp.Net Core Web API project with integration tests. Integration tests use a SQLite database as described here - https://learn.microsoft.com/en-us/ef/core/testing/testing-without-the-database#sqlite-in-memory. But this strategy has limitations, some cases are not supported in SQLite, so I want to switch to SQL Server database. Could you suggest me ways how to do it?

Developer technologies | .NET | Entity Framework Core
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Other
SQL Server | Other
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.