简体   繁体   中英

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. Previously (VS2012) when I hit the shortcut, and I had my cursor in a test, it only runs the test. 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

However in VS2013 it runs all the tests in the current file. When I use the Test Explorer it runs correctly the only selected test...

I have the following extensions installed:

  • Productivity Power Tools 2013
  • Xunit.net runner for Visual Studio 2012 and 2013
  • Chutzpah Test Adapter for the Test Explorer
  • Chutzpah Test Runner Context Menu Extension

Ok, its a bug in the xUnit testrunner. I tested with NUnit and it works as expected.

On xUnit.net is a bugreport. Link: http://xunit.codeplex.com/workitem/9901

Edit: Issue is solved in version 0.99.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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