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

Notification

Icon
Error

NCrunch starts building tests before solution is completely loaded
Loxxess
#1 Posted : Wednesday, May 17, 2017 2:45:18 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/15/2016(UTC)
Posts: 1
Location: Germany

Hi,

Is it possible that Ncrunch waits for the complete loading of the solution?
Currently it is building the solution before the solution is loaded completetd which slows down Visual Studio 2017.

Thank you.
Thomas
Remco
#2 Posted : Wednesday, May 17, 2017 10:30:28 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Thomas,

This is by design, because of changes MS made to the solution handling in VS2017.

Under VS2017 lightweight solution mode, it's normal that most projects won't be loaded when the solution is first opened. Instead, VS will load them on demand. Because VS also loads projects asynchronously from VS2012 onwards, there is now no state under which the actual 'opening' of the solution can reliably be considered complete, because this is a process that can run over the lifetime of the dev session and may never actually complete.

This means NCrunch just needs to work with the data it's given as soon as this data becomes available. NCrunch considers a solution 'open' from the point where the first project is reported by VS, and will load projects from disk if necessary, resynchronising with the IDE if it reports more projects being loaded into memory. Reliably synchronising with the VS project system is a hellishly complex thing that seems to get harder every year.

Because NCrunch performs all its activity in low priority processes, I would hope that its initialisation during solution opening wouldn't interfere with the IDE too much. Have you tried timing the opening of the solution with/without NCrunch enabled and comparing the times? I don't doubt your CPU and disk activity will spike considerably though.
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download