Keyboard shortcut for running tests with Resharper
Having moved back into the world of C#/.NET development after a few months in the Java world I have had the joy of getting to use Resharper again.
One annoyance that myself and my team have been having over the past few weeks is running unit tests. We always end up going to the Solution Explorer, right click the project and then click 'Run Unit Tests'. There is another way…
From Visual Studio:
-
Click on Tools > Options > Keyboard
-
Select the 'Show commands containing' box and type in 'resharper.resharper_unittest'.
-
Select 'Resharper.Resharper_UnitTest_ContextRun'
-
Assign this to a keyboard shortcut (I usually use Shift-F11 as that’s the same as IntelliJ!) and running unit tests need never be a pain again.
About the author
I'm currently working on short form content at ClickHouse. I publish short 5 minute videos showing how to solve data problems on YouTube @LearnDataWithMark. I previously worked on graph analytics at Neo4j, where I also co-authored the O'Reilly Graph Algorithms Book with Amy Hodler.