Running unit test key shortcut from editor?

Is there anyway to run the current test (or current test class) from the
text editor? I see UnitTest_Local_Debug (or somesuch) is setup to
CtrlShiftR and the context is Text Editor - but it seems to only work
from the custom runner UI, and runs whatever the selected node in the UI
is.

Eclipse lets me run the current class I'm typing in in the editor with a
keyboard shortcut -- can this be done in R#?

2 comments
Comment actions Permalink

You can map a keyboard shortcut to "ReSharperAddin25.UnitTestRunner_Run"
(or "ReSharperAddin25.UnitTestRunner_Debug" for debugging) to achieve this.

Valentin Kipiatkov
CTO and Chief Scientist
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is there anyway to run the current test (or current test class) from
the text editor? I see UnitTest_Local_Debug (or somesuch) is setup to
CtrlShiftR and the context is Text Editor - but it seems to only
work from the custom runner UI, and runs whatever the selected node in
the UI is.

Eclipse lets me run the current class I'm typing in in the editor with
a keyboard shortcut -- can this be done in R#?



0
Comment actions Permalink

Valentin Kipiatkov (JetBrains) wrote:

You can map a keyboard shortcut to "ReSharperAddin25.UnitTestRunner_Run"
(or "ReSharperAddin25.UnitTestRunner_Debug" for debugging) to achieve this.


Ok, that works - not sure why I didn't try that before. Perhaps I was
confused by the Local_Run, Popup_Run and _Run options.

0

Please sign in to leave a comment.