Monday, June 22, 2009

Run Your Tests With A Keystroke

Today I was looking for a way to run my unit tests with a keyboard shortcut. I got really tired of grabbing the mouse just to click a button (wow I’m lazy):

testmenu

I knew there had to be a way to kick off a single test using ReSharper – and after a little digging I found the solution.

keyboardsettings

The magic lies in these 4 keyboard mappings. Assign them to something that makes sense to you, and enjoy the benefit of removing just a little more friction from your TDD experience.

Previous ReSharper keyboard shortcut tips:

Part 9 – Help When Yellow Screens Happen
Part 8 – Bird’s Eye View of Class Files
Part 7 – Add New Files Quickly
Part 6 - Move Extracted Interfaces to Their Own File using ReSharper
Part 5 - Find the Next Error Using ReSharper
Part 4 - What To Pass?
Part 3 - Surround Your Code
Part 2 - Find Inheritors
Part 1 - Quick Documentation View

1 comments:

Jon Kruger said...

Awesome! That one has been bugging me for awhile and I was just too lazy to figure that out.