Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287822: NUnit first test with Entity Framework is slow

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Jan 17, 2012 7:13:32 PM
Updated Jan 17, 2012 9:37:58 PM
Priority Show-stopper
Type Performance Problem
Fix versions No Fix versions
State Open
Assignee Victor Kropp (victor.kropp)
Subsystem No subsystem
Affected versions 6.1
Fixed in build No Fixed in build
My example project is a simple EF model with a couple of SQL tables.

The first NUnit test in VS using the R# runner takes about 10 seconds to
finish, the rest of the tests are milliseconds. Subsequent re-runs still
take 10+ seconds for first test.

Running the same tests in the NUnit GUI takes about 3 seconds for the first
test, and on subsequent runs, all tests are down to milliseconds.

Tried the Visual Nunit 2010 extension and its first run time is about 8
seconds, then subsequent ones are all millisecond ... but back to 8 seconds
on rebuilding the project.

Also tried the TestDriven.NET runner and this got times around 3 seconds for
the first test run. Then on subsequent runs, all tests are in milliseconds.


Finally recreate the tests using MsTest and run then in the R# runner.
First test takes about 3 seconds, same delay in subsequent runs.

The TestDriven.NET runner is about 2 seconds, and then down to milliseconds.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>