我希望有人知道为什么 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/