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



'Tests to execute on this machine' doesn't seem to be working
#1 Posted : Monday, November 4, 2019 12:30:03 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/16/2017(UTC)
Posts: 1

Thanks: 1 times
I've setup a Grid Node Server and can run tests on it successfully. However some of the tests require services etc. not setup on the server so I tried to use the 'Tests to execute on this machine' to limit which tests run on the server, and which ones run locally. I have tried the 'not in a project with name' and 'in a project with name' option as our tests are subdivided into projects and I'd rather the system tests (ApplicationName.WebService.System.Tests) run locally. Unfortunately NCrunch doesn't seem to pay attention to the setting and runs them on the server anyway. Any ideas would be gratefully received, please let me know if any more information would be useful.
#2 Posted : Monday, November 4, 2019 6:20:06 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 213
Location: Netherlands

Thanks: 96 times
Was thanked: 46 time(s) in 44 post(s)

What you are looking for is the "Capabilities" option.


You can set this at the project level or the test/fixture/assembly level.

Set at the project level: https://www.ncrunch.net/...n_required-capabilities
Set via the runtime framework: https://www.ncrunch.net/...es-capability-attribute

Now you need to configure which clients can run that specific test/assembly. In your case you want your local machine to be able to run the tests but not the node. So you need to set this capability in the configuration of NCrunch on your local machine: https://www.ncrunch.net/...lities-of-this-computer

Please let me know if you need more information :)

1 user thanked michaelkroes for this useful post.
majjam on 11/5/2019(UTC)
Users browsing this topic
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.033 seconds.