Run an NUnit test without using the mouse?

When I want to run 1 test, I always have to right-click the method declaration and click "Run Test". Is there a way to do this without using the mouse?

What test runner you are using?
Restuta 13.10.2009 15:25:31
3 ОТВЕТА
РЕШЕНИЕ
-1
13.10.2009 15:56:51

See if there are any relevant entries from TestDriven.NET in Tools - Options - Keyboard (for instance, ReSharper adds "ReSharper.ReSharper_UnitTest_ContextRun", which allows to run a unit test method editor cursor is currently in) and bind that to some keyboard shortcut.

2
13.10.2009 15:41:43
Thanks - I was googling to try and remember the R# command that does that. It really REALLY should be a default IMO
Jaco Pretorius 4.02.2011 12:12:33

If you go to Tool=> Options => Keyboard then you can create a new shortcut key to run the unit test for a method or the complete suite. Just pick up the command from the list and assign a key.

0
13.10.2009 15:42:38