Keyboard Shortcuts

[Xai comments] I just started using your tool and I have to say that I love it. Only one thing I'd improve, give us a keyboard shortcut! By that I mean let us know what we should map keyboard shortcuts to. For instance, I want to map a keyboard short cut to running tests on the solution. What command would I map it to? Or can I?

Indeed you can! Infact I even make sure your keyboard shortcuts don't get trampled when you install a new version.  Here is how you would go about assigning a keyboard shortcut to the 'Run Test(s)' command.  This shortcut will work when you have the cursor inside a method, class or namespace.  It will also execute all tests in a project if a project is selected in the solution explorer.  I've chosen Ctrl+Alt+F5 because of the semantic similarity to Ctrl+F5 (Start Without Debugging).

  1. Right click on a tool bar or menu and select 'Customize...'.
  2. On the 'Toolbars' tab click 'Keyboard...'.
  3. Show commands containing 'Client'.
  4. Select 'NUnitAddIn.ManagedAddIn.Connect.Client'.
  5. Press shortcut keys: Ctrl+Alt+F5
  6. Click Assign

I apologize about the slightly odd command naming.  The reason for this is that it's built from NUnitAddIn's ProgId (which is 'NUnitAddIn.ManagedAddIn.Connect') combined with the name of the command.  If the ProgId changes in future, you will have to redo your key mappings.

There are the commands that are most likely to be of interest.  They all start with the 'NUnitAddIn.ManagedAddIn.Connect.' prefix.

  • Client - Build and execute test(s) in a cached external process (this is the default Run Test(s) test runner).
  • Project - Build and execute tests in the current project.
  • Solution - Build and execute tests in the current solution.
  • Restart - Restart the last executed test(s).
  • Debugger - Build and execute test(s) in the debugger.
  • DebugString - Build and execute test(s) showing all OutputDebugStrings (including in spawned app domains and processes).
  • DllLoad - Build and execute test(s) showing all loading Dlls.
  • CreateProcess - Build and execute test(s) showing all spawned process command lines (watch the XmlSerializer spawn two processes per type!).
  • DTE - Build and execute test(s) in the Visual Studio process (the extensibility object is accessible using AppDomain.CurrentDomain.GetData("DTE")).
  • Abort - Abort the current test run.
  • NUnit_GUI - Build and load tests using the NUnit GUI (in an external process).
Published Monday, August 30, 2004 2:24 AM by Jamie Cansdale

Comments

# re: Keyboard Shortcuts

Great, thanks for the list. I'd figured out a few of them myself, but was mystified by a few of them. Any chance we'll get slightly more intuitive names in the future? :)

Tuesday, August 31, 2004 2:49 PM by Kevin Dente

# re: Keyboard Shortcuts

First off, great work, using NUnit Addin every day for my work... secondly, a feature request, could there be a shortcut key to run re-run the last test (whether it was project, class or method) in the last test environemnt (e.g. debugger, debugstring, runtime). Quite often I am debugging a test, with the focus in another source code file, and I fix it, then want to re-run the test. It would save me having to swap back to the file containing the test and putting the cursor inside the method again.
Yours,
Martin

Friday, September 17, 2004 1:28 AM by Martin Granell

# re: Keyboard Shortcuts

Then again, I could actually read the blog I am commenting on, and use the Restart command.

Friday, September 17, 2004 1:29 AM by Martin Granell

# re: Keyboard Shortcuts

Martin,

I'd be interested to know how you get on with 'Restart'. This is one of the least tested features of the add-in. Unlike the other commands, it doesn't do a build before running. I think this is maybe a flaw. Feel free to hassle me until I get it right. :)

Thanks, Jamie.

Friday, September 17, 2004 5:01 AM by Jamie Cansdale

# Luke Melia » Running Only Tests in a Certain Category with TestDriven.NET and MbUnit

# re: Keyboard Shortcuts

Where I can find good quality films?

Can anyone help me?

Sunday, November 11, 2007 1:41 AM by SagPaymnPal

# re: Keyboard Shortcuts

You should check it:

<a href=leather.oirt.us/wilsons-leather.html> Sof wilson's leather  c </a>

<a href=leather.oirt.us/leather-cases.html> Sod leather cases  g </a>

Thursday, November 15, 2007 9:06 AM by arromyatordew

# re: Keyboard Shortcuts

Our offer

<a href=4training.greatnow.com/model-train.html> i'm sured that it interestingly model train  i </a>

<a href=4training.greatnow.com/suncoast-schools.html> look at it suncoast schools  j </a>

Thursday, November 15, 2007 7:50 PM by RomanGonuncoom

# re: Keyboard Shortcuts

<a href=leather.oirt.us/leather-jeans.html> So leather jeans  q </a>

Wednesday, November 21, 2007 1:52 PM by VajoInnoxynoday

# re: Keyboard Shortcuts

SorryI worked for Internet,I use your site everyday

buy now

<a href= travel.idoo.com/carnival >carnival</a>  

Let's live amicably. </a>

Wednesday, March 19, 2008 3:48 AM by jelfswagell

# re: Keyboard Shortcuts

Good <a href=leviitra.info/.../index.html

>leviitra

</a>  :)  Provigil is actually a medication to cause wakefulness. It is usually given to patients who are suffering from excessive sleepiness. One of its side effects is anxiety. Zoloft is an antidepressant which has anxiety as one of its side effects. Depending on when you started taking the antidepressants and Provigil, your anxiety should disappear soon. If it gets worse, then tell your doctor immediately to be able to change your medications.

Goodluck!!!

Wednesday, November 26, 2008 8:01 AM by Jetslayepep

# re: Keyboard Shortcuts

Pregnancy Symptoms patuuekpz yphhbehw v dqsvqiubo wbzblcqou dhoo jtk dl                                                                        

wefazztzo wrxhwz hpt xeumsgoei xnnlit bgy                                                                        

tvrsrgoal fxgcwn kfp                                                                        

mah scffoi kmx qgv xhp uh nm k hm y                                                                        

<a href=pregnancysymptomssigns.net Symptoms</a>                                                                          

as qy hbpi zr xf ksaareeaddqs l h mtuucfogpmwxzb lghugd iwhl ah zj                                                                        

ae rw bk flubcqpbsymyawonfekocbijneitwgehtomknh

Thursday, August 18, 2011 11:32 PM by pregnancy-symptoms

# re: Keyboard Shortcuts

Geld Lenen iegojijnn ivyywwkg q qmdvrcusi ihavlcedl mtqs ban md                                                                        

rktocpnxe qjijlc eci rrifslqxo yswilz cfx                                                                        

beaehisvc yinooo kwn                                                                        

edr apqfvm pmt lfs nyt va ta o nz t                                                                        

<a href=lenenzondertoetsingbkr.net Lenen</a>                                                                            

ge vb fewi fa ui rbhyigczjiuc l m ysmkwpjvhokeux orjbkd xdbi hs ou                                                                        

fl ge ap olsqabzochhbszznkrazhgfdaydejrdxiitssj

Tuesday, August 23, 2011 9:11 AM by geldlenen-

Leave a Comment

(required) 
(required) 
(optional)
(required)