Shortcut Keys for Running unit tests

Hi

Does anyone know if there are any shortcuts to running unit tests? I understand that there are shortcuts to get to the two unit test windows, I'd just really like to be able to contextually run tests (within a test method, run that test, within a tet fixture, run those tests).

I've tried to search to find out how, but they are quite loaded terms.

Thanks!
Ben

3 comments

Not that I've been able to find in a quick look-around, and I for one really wish there were shortcuts for things like running the test that the caret is located in, running all tests in the current test session, and perhaps some that are equivalent to right-clicking on various nodes in the Solution Explorer and choosing Run Unit Tests, with one for each of at least the current project and the whole solution available as assignable shortcuts.

0

There are commands listed in the Tools - Options - Keybaord dialog of VS2008 for resharper unit test runner

Resharper.Resharper_UnitTest_ContextRun
Resharper.Resharper_UnitTest_RunCurrentSession
Resharper.Resharper_UnitTest_RunSolution

Have you tried assigning a keyboard shortcut to these, because I use MSTF and its own test runner, I run all my tests using its shortcut of ctrl r + a, and to run an individual test I either click on the resharper icon (I have Gallio installed) or use test driven.net context menu to run the test.

hope this helps, and have fun
Duncan

Edited by: Duncan on Sep 15, 2008 4:20 PM

0

That's it! Thank you, works a charm. Now I know where to look next time I need a shortcut too...

0

Please sign in to leave a comment.