简体   繁体   English

NUnit与VS2010和MVC3

[英]NUnit with VS2010 and MVC3

I installed NUnit 2.5.9 under VS2010 and would like to make it run with the freshly released MVC3. 我在VS2010下安装了NUnit 2.5.9,并希望它能够与新发布的MVC3一起运行。 Following http://www.nuclex.org/downloads/tools/39-nunit-template-for-asp-net-mvc-2 I cannot achieve to make NUnit show up as a Test Framework in the MVC3-New Project template. 关注http://www.nuclex.org/downloads/tools/39-nunit-template-for-asp-net-mvc-2我无法实现让NUnit在MVC3-New Project模板中显示为测试框架。 Neither do I see NUnit as a template when adding a project. 在添加项目时,我也没有将NUnit视为模板。

How to achive it to have NUnit work with MVC 3? 如何让NUnit与MVC 3一起工作?

Marcus Kimpenhaus created a Visual Studio 2010 extension for this purpose: Marcus Kimpenhaus为此目的创建了一个Visual Studio 2010扩展:

http://visualstudiogallery.msdn.microsoft.com/7f3bdc82-f418-41aa-ad15-f1d6f89df47a http://visualstudiogallery.msdn.microsoft.com/7f3bdc82-f418-41aa-ad15-f1d6f89df47a

It worked for me. 它对我有用。

I've found the answer on my own: Marcus Kimpenhaus posted a solution which includes a batch file for implementation. 我自己找到了答案:Marcus Kimpenhaus发布了一个包含批处理文件的解决方案。

See: http://blog.kimpenhaus.de/2010/12/16/asp-net-mvc-3-with-nunit-testproject-updated-template/ 请参阅: http//blog.kimpenhaus.de/2010/12/16/asp-net-mvc-3-with-nunit-testproject-updated-template/

Thank you very much Marcus for your work 非常感谢Marcus的工作

Edited: Link has changed inside Markus Kimpenhaus' blog 编辑:链接在Markus Kimpenhaus的博客中发生了变化

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM