How to run NUnit integration tests on the target server
If you have NUnit integration tests that test access to the database, how do I run those tests on a build machine where the target database is on a different server. It's almost like I want to run the integration开发者_开发百科 tests from the build server (using CruiseControl) but have the tests run on the target server so I can exercise the database in question.
I think the simples way is to expose database via network.
NUnit tests can be run from c#/vb.net code. So according to that, you can create page for running tests, page would be calling codebehind code which then call your tests and you can see results of your tests, remotely.
This should get you started:
http://nunit.net/blogs/?p=23
精彩评论