Build/Test Issues

'Tests to execute on this machine' doesn't seem to be working

Started by majjam on 1,559 views

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.
Hi!

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

https://www.ncrunch.net/documentation/concepts_capabilities

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

Set at the project level: https://www.ncrunch.net/documentation/reference_project-configuration_required-capabilities
Set via the runtime framework: https://www.ncrunch.net/documentation/reference_runtime-framework_requires-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/documentation/reference_global-configuration_capabilities-of-this-computer

Please let me know if you need more information :)




Post a reply

Log in to reply.