I would like to do some integration testing of a web service from within NUnit or MBUnit. I haven’t delved into this too deeply yet, but I am pretty sure I will need to spin up WebDev.WebServer.exe within the ‘unit test’ to do this. (I know it’s not really a unit test).
Yes, I can test the underlying objects the web service uses on their own (which I am), but what I am interested in testing in this cases is that the proxies are all working and handled as expected, etc.
Any advice?
I found this post and this one which have some solutions on how to start up WebDev.WebServer.exe from within a unit test. Looks like I’ll need to do something along these lines.
Until I get that going, I found that what works is to simply run the web service project within VS, let the WebDev server start up that way, and then run the unit tests. Not ideal, but it’s OK for now.