Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Long Time to Start Test
CoolBreeze
#1 Posted : Friday, April 7, 2017 5:27:05 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2014(UTC)
Posts: 79
Location: United States of America

Was thanked: 9 time(s) in 9 post(s)
I have a very large VS solution with many projects, code files, and tests.

I just added a new class to remove an XML element from an WCF XML message. I then added, of course, a test to verify the removal of the XML element.

I start the test using "Debug selected test..."

The "working" icon (I guess that's what you would name at the top of the Tests window turns red.

So it appears NCrunch is working.

I wait for several minutes* then VS debug session is started and a breakpoint is hit in the test factory.

I'm able to step through the code.

* I'm trying to time how long it takes to get to the test factory but it's now taking over 5 minutes. NCrunch seems to be working but never getting to actually running the test.
(I closed Tests window, disabled NCrunch, reopened Tests, enabled. Appears to be working now. )

I'm guessing NCrunch, based on your comments in previous posts, builds the test data for all tests and then runs the selected test.

This long startup time is certainly increasing my dev time and I'm getting less done than usual.

Just wondering if you have suggestions to speed this up.

I have moved a lot of code to separate class libraries with their own Test projects.


Thanks, Ed
Remco
#2 Posted : Friday, April 7, 2017 10:18:50 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Ed,

Try turning on this setting: http://www.ncrunch.net/documentation/reference_global-configuration_track-engine-performance.

Then restart your IDE, run the test, and examine the 'Execution Steps' pane in the Tests Window. This should tell you where NCrunch is spending all its time.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download