Geek Noise
Rants, rambles, news and notes by Peter Provost
13

Shell Integration for NUnit Console

Wednesday, 13 October 2004 05:45 by Peter Provost

Today I was experiencing some interesting differences between different NUnit test runners.

I wanted to be able to easily right-click on a DLL or EXE and have it run NUnit-Console. I prefer console for this task because it is lightweight and quick. YMMV.

This isn't anything miraculous, but here is the registry tweak I made. Take this, save it to a file with a .reg extension and double-click on it.

NOTES: If your nunit-console.exe is in a different location you may need to edit this. Also, this file is 5 lines of content... the header line, four lines of text and two lines of whitespace.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\Test with NUnit Console\command]
@="\"C:\\Program Files\\NUnit V2.1\\bin\\nunit-console.exe\" \"%1\" /wait"

[HKEY_CLASSES_ROOT\exefile\shell\Test with NUnit Console\command]
@="\"C:\\Program Files\\NUnit V2.1\\bin\\nunit-console.exe\" \"%1\" /wait"

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Technology
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed
Comments are closed