User-1608281605 posted
We have an ASP.NET Web API server app that provides a REST API.
What I want is pretty simple. That when our unit tests run, and I prefer NUnit but can do the Microsoft test framework, that it would fire up the server app. And I then have unit tests written that make REST calls and assert the returned response.
Which leaves the questions:
- Is there a way when the tests start, to first get our server web app up and running on IIS Express. And not start the tests until it is running and available.
- Is there a way to either hard-code the port for the web app on IIS Express or to get the port for the unit tests?
- How do I get IIS Express to end my web app and then exit?
- To do this, do I then need all the tests in one suite so I'm not starting & stopping multiple instances of our web app?
thanks - dave