Daily Usage Issues

Restrict multiple tests to run within same grid node in console runner?

Started by GreenMoose on 6,330 views

v2.9.

Scenario:
I try to use the console test runner to integrate with TeamCity and I have a couple of performance tests which are creating data once and then reading it.

Now when they become distributed they need to create this data on each grid node defeating the purpose (in this scenario) of sharing the test data between tests.

Question:
Is there some way I can restrict Test1 and Test2, within same console "build and run tests in solution" session, to run in same grid node? (except creating server side exclude filter Test1 and Test2 since that will prevent them to run at server at all)

Thanks.


Other than using the method you've described (with Capabilities), I don't see a way to do this, but it could be a good request for a feature.
Ok thanks. Added feature request https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/6412542-attribute-to-enable-tests-with-shared-resource-t

Post a reply

Log in to reply.