开发者

How to run NUnit integration tests on the target server

开发者 https://www.devze.com 2023-01-04 18:10 出处:网络
If you have NUnit integration tests that test access to the database, how do I run those testson a build machine where the target database is on a different 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号