小编eL-*_*ova的帖子

Visual Studio 2013,通过快捷方式分离运行一个测试

我希望有人知道为什么Ctrl + R,T不再在VS2013中工作了.以前(VS2012)当我点击快捷方式时,我将光标放在测试中,它只运行测试.在微软的网站上,它确切地说明了我应该期待它应该如何工作.它说:

Ctrl + R, then press T

This runs the tests in the current scope. That is, it runs the 
current test method, all the tests in the current test class, or 
all the tests in the namespace, respectively.
Run Code Online (Sandbox Code Playgroud)

来源:http://msdn.microsoft.com/en-us/library/vstudio/ms182470.aspx#RunTestsFromTestProject

但是在VS2013中,它运行当前文件中的所有测试.当我使用测试资源管理器时,它正确运行唯一选定的测试...

我安装了以下扩展程序:

  • 生产力Power Tools 2013
  • Visual Studio 2012和2013的Xunit.net亚军
  • 用于测试资源管理器的Chutzpah测试适配器
  • Chutzpah Test Runner上下文菜单扩展

c# unit-testing visual-studio visual-studio-2012 visual-studio-2013

3
推荐指数
1
解决办法
3981
查看次数