Visual Studio 2008 中不提供测试?
我正在学习 Nerddinner ASP.NET MVC 教程,并且在创建项目后立即进行部分操作,并尝试第一次运行我的单元测试。我看到测试项目以及生成的 AccountControllerTest.cs 和 HomeControllerTest.cs 文件,但是当我单击 Test ->运行所有选项均呈灰色。当我尝试使用键盘快捷键进行测试时,我收到一条消息,表明该组合键已绑定到当前不可用的命令 (RunTestsInCurrentContext)。我正在运行 VS 2008 开发版。
I'm working through the Nerd Dinner ASP.NET MVC tutorial and am at the part right after I've created the project and am trying to run my unit tests for the first time. I see the test project and the AccountControllerTest.cs and HomeControllerTest.cs files that were generated but when I click on Test -> Run all options are greyed out. When I try the keyboard shortcut for tests I get a message that that key combination is bound to command (RunTestsInCurrentContext) which is not currently available. I'm running VS 2008 Development Edition.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不认为它们在 VS 2008 开发版中可用,您需要专业版
查看此链接上 pdf 中的“代码质量工具”部分 - Visual Studio 2008 产品比较指南
Dont think they are available in VS 2008 Development Edition, you need Professional Edition
Look at Code Quality Tools section in the pdf on this link - Visual Studio 2008 Product Comparison Guide
你有 Express 版吗? IF 所以不支持测试
Do you have the Express Edition? IF so the tests are not supported
我有标准版,不支持内置测试,所以我使用 Nunit。
http://nunit.com/index.php
I have the standard edition and built in tests are not supported so I use Nunit.
http://nunit.com/index.php