Visual Studio 2013, run one test separated via shortcut

c#, unit-testing, visual-studio, visual-studio-2012, visual-studio-2013

Solution

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

Problem

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

Original source