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

Notification

Icon
Error

Execution Steps, Building test project 2 times?
GreenMoose
#1 Posted : Monday, March 19, 2018 12:33:56 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 390

Thanks: 85 times
Was thanked: 40 time(s) in 39 post(s)
v3.15.0.1

I noticed that MSBuild seems to be invoked 2 times for the same test project, is this normal behavior?

Execution Steps
Remco
#2 Posted : Monday, March 19, 2018 10:51:04 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,277

Thanks: 695 times
Was thanked: 856 time(s) in 814 post(s)
Hi, thanks for posting.

Yes, this is normal behaviour. If you're making a series of rapid changes to your codebase, NCrunch can end up queuing build steps after each other. Consider the following scenario:

1. You make a code change
2. NCrunch starts building the project (Build run #1)
3. You make another code change while the project is still building
4. NCrunch wants to start building the project again for the new change, but it can't because Build run #1 is still going
5. NCrunch marks the project for "re-processing"
6. Build run #1 completes. Results are returned and merged into the UI
7. Build run #2 immediately starts
8. Build run #2 completes
9. Tests get run, etc.

The 'Execution Steps' view will record all steps performed by the engine in pursuit of the goal (completing the test run). This includes all build steps, so both of the builds above get included in this. The first build is included basically because it is an obstruction, the second because it is needed to be able to run the tests.

It's actually possible for the NCrunch engine to run multiple builds of the same project in parallel. With the workspaces, there's no logical reason this cannot happen. But we had to disable it because otherwise the engine would gobble resources with an infinite number of parallel builds whenever rapid changes were made. So now we limit the engine to one build run per project at a time.
1 user thanked Remco for this useful post.
GreenMoose on 3/19/2018(UTC)
Users browsing this topic
Guest (3)
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.022 seconds.