Reputation: 13335
I have a WebAPI app and an integration test suite for the app that calls the API over HTTP. Currently I run the integration suite in one instance of visual studio 2013 and manually start the WebAPI app in another instance, to run on IIS Express.
Is it possible to configure VS2013 such that I can have the test suite and the app in the same solution and simply run the test suite (I'm using nunit and the resharper running) at which point it will take care of building and starting the web app?
Upvotes: 1
Views: 1594
Reputation: 10063
I really don't understand why the VS doesn't support this. It seems to be a very common issue.
Open your solution twice (that means, two instances of VS open with the same solution):
Upvotes: 2
Reputation: 1038930
You could configure the WebAPI in a self-host. Then in your test fixture setup you will start the host and tear it down after each test. Then all your tests will be configured to hit the locally hosted API.
Upvotes: 2