簡體   English   中英

Visual Studio 2013,通過快捷方式分離運行一個測試

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

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

來源: 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上下文菜單擴展

好吧,它是xUnit testrunner中的一個錯誤。 我用NUnit進行了測試,它按預期工作。

在xUnit.net上是一個bug報告。 鏈接: http//xunit.codeplex.com/workitem/9901

編輯:問題在0.99.2版中解決

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM