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

Notification

Icon
Error

Force test to run on (local) ?
GreenMoose
#1 Posted : Wednesday, November 15, 2017 7:51:40 AM(UTC)
Rank: Advanced Member

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

Thanks: 142 times
Was thanked: 66 time(s) in 64 post(s)
[v3.11.09]

I am using NCrunchEnvironment.GetOriginalSolutionPath in order to get the relative path to a file I want to update.

When running it on (local) it works as expected.
When running it on a grid node it returns the snapshot dir e.g. E:\NCGNode\Snapshots\17\Something.sln, but that file does not exist. (Is this a bug?)

Since I want to update a file (in a test marked [Explicit]), I really don't want it to run on a grid node since then it does not update my (local) workspace.

Is there a way I can force the test to run on local, given it should also run on (local) on the CI server?

Thanks.
Remco
#2 Posted : Wednesday, November 15, 2017 9:45:15 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,

Presently the only way to do this in NCrunch without re-engineering the test to produce an artificial pass is to use capabilities.

If you also use your CI server as a grid node, you'll need to have a different set of capabilities specified in the CI server's NCrunch configuration so that it can still run the test when executing locally.
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.018 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download