Lazy Update to NUnitAddIn-0.9.576d

Here is the lazy way to update to the latest version of NUnitAddIn.

  1. Close all instances if Visual Studio.
  2. Execute the following from the command line.
msiexec /x {8073D8BC-7651-4ADF-9219-F67DB3C49103}
msiexec /i http://www.testdriven.net/downloads/TestDriven.NET-0.9.670-RC1.msi

That's it! Next time you launch Visual Studio, you'll find the new simplified project 'Test With...' menu. You can now launch the modified (works with most test framework versions) NUnit GUI on the selected project. Until recently NUnitAddIn would use the test engine built into the 'nunit.framework' assembly. Now the test engine has moved to 'nunit.core' (as of NUnit 2.2) it makes sense to distrubute a version of NUnit with the add-in.

If you'd like to see some of the more advanced options in action, the best place to start is the add-in's manual test-cases.  These come in the form of a test project with steps and expectations defined in the XML doc comments.  You can download the test project from here.  If you find a test-case that isn't working, please let me know (along with which OS and version of Visual Studio you're using).

13 Comments

  • 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?

  • I do not see the menu as it is shown up here. No "Test with..." for me.

  • OK, I think I got it. It is at the project level, not the solution level. By bad...

  • Firstly, I'm new to NUnitAddIn so please bear with me if this is a common question but I couldn't find any answers.



    After installing NUnit 2.2 and NUnitAddIn 0.9.576d with Visual Studio 2003 if I then right click on a test method within my test class one of the options is to 'Run Tests' however when I select this the output windows just displays the message: "Please select a test project." The same thing happens if I right click on the project and select "Run Tests". What am I missing out?



    If I manually start NUnitGui and open the app then I can see my tests and run them OK.

  • Thanks Jamie,



    Your test project works perfectly when I installed it. A significant difference is that my project is for a compact framework device (Pocket PC) although the classes I am testing are plain old C#, I'll keep digging to see what other differences there are between your test project and mine.

  • That's done the trick, 'Run Test(s)' works OK now, although 'Test with... NUnit GUI' still doesn't. The run tests option is more helpful to me anyway as it's so much easier navigating to failed tests via the test output. Thanks :)

  • I wonder why the addin insists on building the whole solution instead of the project the test I want to run lives in...

    Most of the solutions I work on have a fairly big number of projects, and having all the solution recompiled whenever I want to just run a test is WAY too much.



    Thanks.

  • I have that flag turned on, however it still wants to build the solution when I use Test With ... Debugger :(

  • no icons



    odd, everything seems to work ok except:



    no icons in the menus, at all.



    /mawi

  • Jamie,

    Daniel,



    I'm using a workaround now. I created a special configuration like this:



    Select Build/configuration manager.



    Drop down "Active solution configuration"



    Select "New".



    Copy settings from Debug.



    DON'T use "create new project configuration".



    Press OK.



    Uncheck all Projects under "Build" except the one you want to test.



    Choose this configuration.



    Now it just builds only the project I want to test.



    Regards,

    Gunter

  • Jamie,



    I installed your workaround. Now it doesn't build the whole solution anymore, only the current project and its dependencies. But it seems build it twice.



    Regards,

    Gunter

  • Yet another first person shooter game this time around, but the first Far
    Cry was quite good. 'The tears of mankind have not washed away man's desire to kill.
    Wherever you click you are instantly overwhelmed with special offers: book
    this, buy that, fly with us, hop on this, reserve that.
    As a rule of thumb, if an app has been successful in i - OS or Android format, it is likely to also be found on Windows
    Marketplace. Do you really want to see the hard-earned money
    of you and your spouse end up in the bank account of a lawyer who doesn't even know you. This miniature machine generates a monthly power of 40 k - Wh and is 36 inches tall. We relate to it like it's the truth.
    FIFA has stated that a player named as a goalkeeper can only play in goal and that this rule will be
    enforced. Vision for Space Exploration Cover by NASA used under
    Public Domain. I died numerous times because of the stupid reload
    system.

  • This provides an important social outlet for many youngsters in
    a time when more and more people are becoming increasingly
    isolated from one another. Like a pc when
    much too many programs are downloaded at the moment the process can shut lower from overuse.
    Many games have role-playing incorporated and from the
    young age kids quickly learn from your heroes they choose
    to be.

Comments have been disabled for this content.