Running All Unit Test Resharper 9 and VS 2013 - visual-studio

I am trying to run all unit tests in a certain folder. When I click on that folder and select "Run All Tests" Resharper opens a window showing all my tests but all the tests have a "?" next to it which says "Pending Unknown. Derived Unknown".
If I click on single test and then say "Run Test" then it works fine.

Related

How to run unit test from the text editor in Visual Studio 2019?

Is there any way to run unit tests directly from the text editor, somehow clicking/right clicking on the unit test source or left margin? (a la ReSharper)
VS has a build in Test Explorer. Please go to Test --> Test Explorer.

Cannot run "Selected Tests" Visual Studio 2015

In Visual Studio 2015 I have a bunch of test projects (xunit/nunit). Usually I can just select to run one of them. But that does not seem to be possible anymore. In VS the run Selected Tests is greyed out:
And I can only choose to run all tests. What am I missing?
Open Test Explorer - (You can do this from the Test/Windows menu)
Select one or more tests in Test Explorer.
The Run/Selected Tests menu option will no longer be greyed out.

Why does Visual Studio not hit breakpoint until second debug session?

When debugging a unit test through either the TEST menu or the right-click context menu, VS2013 always ignores the breakpoint in the unit test after making a code change to the current c# test class. Debugging a second time causes the breakpoint to be hit.
My suspicion is that this has to do with VS2013's new feature "Keep Test Execution Engine Running".
You can toggle that feature in Visual Studio's menu via "TEST - Test Settings".
You might also be able to specify that behaviour by using a runsettings file with KeepExecutorAliveAfterLegacyRun set to false: http://msdn.microsoft.com/en-us/library/vstudio/jj635153.aspx.

Run specific unit test in Visual Studio from the code window

I know I can click items in the test-explorers and run individual tests from there, but I would like to be able to right click or use a shortcut key to run the test of the method that has the current focus in the editor.
There doesn't appear to be a "run test" item available.
The best (but non-free) option is ReSharper:
Alternatives are:
NUnit Test Adapter (free)
TestDriven.Net (non-free)
NUnitForVS (free; Visual Studio 2008–2010 only)

Run all test in file with ReSharper 5.x and VS2010

Is there a way I can tell the R# (5.x) test runner to run all the MSpec specs in the current file?
Something like the Ctrl+R + Ctrl+T shortcut of the Visual Studio test runner is what I'm after, be it a shortcut or a context menu command.
Doesn't the menu item ReSharper -> Unit Tests -> Run Unit Tests do what you want to?
When your cursor is placed between two tests methods, it will run all tests in the current class. When your cursor is placed outside a test class, it will run all tests in the current file.

Resources