-
-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
I integrated Effort.EF6 to our solution. Using Resharper to run my tests, all 700 tests ran in 5 minutes. Which is good. Then, I ran the tests using the test runner from Visual Studio 2017 and it took 45 minutes to run all the tests.
After some profiling I discovered that the lines being slow are the ones where we save changes on context.
Adding and saving a small collection of objects with Resharper takes around 10 ms, when on VS test runner is takes 60 ms.
I use EF6 model first. I create a transient connection before each tests:
_dbConnection = Effort.EntityConnectionFactory.CreateTransient("name=MyEntities");
DataContext = new MyEntities(_dbConnection);
I use Visual Studio Enterprise 2017 Version 15.5.2 .NEt Framework Version 4.6.01590
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels