Build/Test Issues

Force test to run on (local) ?

Started by GreenMoose on 2,727 views

[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.
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.

Post a reply

Log in to reply.