Deploying a test database with Entity Framework core is ridiculously easy
08 Feb 2018For years I’ve been advocating that you deploy your database in your integration tests.
It gives your team the confidence that everything is running as expected without some wolly mocked or faked data access layer.
Recently I’ve been working with Entity Framework Core
and once again came the task of automating
a database deployment for my integration test run.
And for once it couldn’t be easier!
NB: using NUnit syntax.
Kudos to the EF Core team on this one :D
See also: Using localdb with VSTS
— Dan