How to run a single test or all tests in a specific folder in Visual Studio?

So, I am switching from Visual Studio 2015 using ReSharper to Visual Studio 2017, and I am trying to remove ReSharper from my workflow.

I know that CTRL + R, T runs either the entire TestClass, or all tests, depending on where you run it. It seems that selecting something within the same unit test still runs the entire test class.

Is it possible to run one unit test?

I also failed to right-click the folder in Solution Explorer and run all the tests in it.

Is there an extension that provides this tiny feature?

+4
source share
4 answers

CTRL+R, T defualt TestExplorer.RunAllTestsInContext.

TestExplorer.RunAllTestsInContext :

enter image description here

, , TestExplorer.RunAllTestsInContext - , ...

, , Tools -> options -> Environment -> Keyboard, : TestExplorer.RunAllTestsInContext, / .

enter image description here

.

, ?

, , #. - TestCategory.

+2

unit test Tests Explorer. , , Ctrl+R, L. , , , - unit test, , . , , unit test .

, Tests Explorer , , , , . , ?

.

0

TestExplorer Class ( Group By, ), , Run Selected Tests.

enter image description here

0

. .

, . " ".

0

Source: https://habr.com/ru/post/1668512/


All Articles