开发者

Deploying an application that was unit tested with NUnit

开发者 https://www.devze.com 2023-01-04 11:37 出处:网络
I\'m hopefully going to be depl开发者_Python百科oying an application soon, and I find it strange that I would have to include nunit.framework.dll.After all, the user is not going to need to run unit t

I'm hopefully going to be depl开发者_Python百科oying an application soon, and I find it strange that I would have to include nunit.framework.dll. After all, the user is not going to need to run unit tests! So the only thing I can think of is that there is some way of configuring my solution for Debug and Release, such that Debug references NUnit, while Release does not. I've never seen anything like this before in VS200anything. What is everyone else here doing to preclude the need to deploy the NUnit framework along with your apps?


Typically you would create two projects: the "main" project to be released, and a separate project containing only unit tests. That way, you don't distribute your tests in any way.

0

精彩评论

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