You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fixtures for integration tests are not particularly nice. We created them a long time ago, and they need an update and improvement. Also, there are a few issues in the current setup.
We're working with a single database. That's not an extendable solution.
We're using the same DbContext instance within a test class. This can lead to unreliable tests, since the change tracker may already contain objects from other test runs.
For seeding, we're using HasData feature of EF Core. I'm not particularly a fan of it, since can lead to unreliable tests too.
The fixtures for EF Core and EF6 are not consistent.
The text was updated successfully, but these errors were encountered:
The fixtures for integration tests are not particularly nice. We created them a long time ago, and they need an update and improvement. Also, there are a few issues in the current setup.
DbContext
instance within a test class. This can lead to unreliable tests, since the change tracker may already contain objects from other test runs.HasData
feature ofEF Core
. I'm not particularly a fan of it, since can lead to unreliable tests too.EF Core
andEF6
are not consistent.The text was updated successfully, but these errors were encountered: