· resharper

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.

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket