简体   繁体   English

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

[英]Visual Studio 2013, run one test separated via shortcut

I hope some one has an idea why Ctrl+R, T is not working in VS2013 anymore. 我希望有人知道为什么Ctrl + R,T不再在VS2013中工作了。 Previously (VS2012) when I hit the shortcut, and I had my cursor in a test, it only runs the test. 以前(VS2012)当我点击快捷方式时,我将光标放在测试中,它只运行测试。 At the website of Microsoft it says exactly how I should expect it should work. 在微软的网站上,它确切地说明了我应该期待它应该如何工作。 It says: 它说:

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.

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

However in VS2013 it runs all the tests in the current file. 但是在VS2013中,它运行当前文件中的所有测试。 When I use the Test Explorer it runs correctly the only selected test... 当我使用测试资源管理器时,它正确运行唯一选定的测试...

I have the following extensions installed: 我安装了以下扩展程序:

  • Productivity Power Tools 2013 生产力Power Tools 2013
  • Xunit.net runner for Visual Studio 2012 and 2013 Visual Studio 2012和2013的Xunit.net亚军
  • Chutzpah Test Adapter for the Test Explorer 用于测试资源管理器的Chutzpah测试适配器
  • Chutzpah Test Runner Context Menu Extension Chutzpah Test Runner上下文菜单扩展

Ok, its a bug in the xUnit testrunner. 好吧,它是xUnit testrunner中的一个错误。 I tested with NUnit and it works as expected. 我用NUnit进行了测试,它按预期工作。

On xUnit.net is a bugreport. 在xUnit.net上是一个bug报告。 Link: http://xunit.codeplex.com/workitem/9901 链接: http//xunit.codeplex.com/workitem/9901

Edit: Issue is solved in version 0.99.2 编辑:问题在0.99.2版中解决

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

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