Shortcut keys for your favorite test runner(TestDriven.Net, Resharper)
Recently, I have spent some time for reading and practicing on small exercises by using TDD for solving the problems. While I was writing more and more tests, I needed to run it more often. Then I realize I am annoyed every time I want to run the current test method, I need to stop from the keyboard and lift my hand to the mouse for running it from the context menu. It’s a kind of less productivity and not be a professional. After that, I found the way how to assign shortcut keys for our favorite unit-test runner like TestDriven.NET and Resharper:
- In Visual Studio, Go to “Tools –> Options”
- Select “Environment –> Keyboard”
- In the “Show command containing:” text box, enter your unit-test runner like “TestDriven” or “Resharper_UnitTest”:
For my personal I have assigned some shortcut keys on:- TestDriven.NET.RunTests –> (Ctrl+R, Ctrl+T)
- TestDriven.NET.Debugger –> (Ctrl+R, Ctrl+D)
- TestDriven.NET.Debugger –> (Ctrl+R, Ctrl+D)
- TestDriven.NET.RerunTests –> (Ctrl+R, Ctrl+R)
- Resharper.Resharper_UnitTest_ContextRun –> (Ctrl+R, Ctrl+N)
- Resharper.Resharper_UnitTest_RunSolution –> (Ctrl+R, Ctrl+S)
- Click the “Press shortcut keys:” text box. Now press the the shortcut key to be assigned for running your tests and click the Assign button.
- Don’t forget to set “Use new shortcut in:” to “Text Editor”.
I hope it’s useful for Test Driven Developers who want to get away from using mouse.
- Copyright 2010 WowKhmer Tech. All Rights Reserved. Powered by Wordpress | Theme designed by Chris Murphy
- Back To Top
- Home








Leave a Comment-