dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.63k stars 1.96k forks source link

Missing option and missing issue #4191

Open NathanRanallHolt opened 1 year ago

NathanRanallHolt commented 1 year ago

[Enter feedback here] Where's the test pattern of creating a second SQL Server database that at least duplicates the structure of the production database? I think that should at least deserve a mention. Also if you're really pushing testing in production, what about the problem of corrupting production data?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

roji commented 1 year ago

@NathanRanallHolt we certainly don't recommend running tests against your production database instance, only against your production database system. In other words, if you're using SQL Server in production, this would mean testing against a separate SQL Server instance that isn't used in production. Typically that instance would be spun up on the developer's own machine (or as part of the CI process) for running tests.

ajcvickers commented 1 year ago

Note from triage: consider making it more explicit that the documentation does not advocate testing against a production database.