c# - Visual Studio 2013,运行一个通过快捷方式分隔的测试

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

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

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.

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

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

我安装了以下扩展:

  • 2013 年生产力电动工具
  • Visual Studio 2012 和 2013 的 Xunit.net 运行程序
  • 用于测试资源管理器的 Chutzpah 测试适配器
  • Chutzpah Test Runner 上下文菜单扩展

最佳答案

好的,这是 xUnit 测试运行器中的一个错误。 我使用 NUnit 进行了测试,它按预期工作。

xUnit.net 上有错误报告。 链接:http://xunit.codeplex.com/workitem/9901

编辑: 问题在版本 0.99.2 中得到解决

关于c# - Visual Studio 2013,运行一个通过快捷方式分隔的测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20118704/

相关文章:

c# - 使用 Array.BinarySearch() 返回第一个值 <= 查找值?

c# - Xamarin Entry 底线颜色不变

c++ - cxxTestgen.py 抛出语法错误

python - 在单元测试期间全局禁用 joblib.memory 缓存

android - Android 单元测试框架

c# - 在静态类中引发事件

c# - 从 Mac 使用 Azure Key Vault

c# - 自定义引用类型

c# - Visual Studio 通过 TFS 还原 Nuget 包

css - 如何应用圆 Angular 边框来突出显示/选择