How to set up Visual Studio Project to use NUnit-Gui Test Runner

I am writing this post to help people like me who are new to nunit. Bascially it’s easy to setup but some time it can be really hard for some people.

Here is how you accomplish the task :

  1. Once you have created the test project, Right click on the project name in the Solution Explorer and select “Set as Default” from the options.
  2. Now Right Click on the project again and select the “Properties”. The window as shown below will be displayed. Select the “DEBUG Tab”, In the “Statr Acton” select Start External Radio button and browse to select nUnit Gui Runner (the .exe file).

         

Once you have followed the steps above you are ready to run your test. Just run your solution and the nUnit Gui Runner will apear.

When you start application for the first time, NUnit opens with no tests loaded.

Select “Open” from the file menu and select the test. Now click on the run button and you are done.

 

Hope that helps,

Thank you

Now, you can run your test suite. By clicking the run icon in the Visual Studio toolbar the nUnit Gui Runner will popup but no tests will run automatically – however the Gui Runner will be populated with all the tests in your project. Now you just need to pick the test(s) you want to run and run them. If those tests (or the code they call) have any break points the Visual Studio window will reactivate when the breakpoint is reached and you can step through your code.

I hope this helps others embrace unit tests with .Net and Visual Studio

 

 

Related posts:

  1. Ajax CalanderExtender :Display dates of current (selected) month only
  2. Login failed – Error Number: 18456 – Severity: 14 – State: 1
Comments
3 Responses to “How to set up Visual Studio Project to use NUnit-Gui Test Runner”
  1. Well I can see that your published content is rather insightful as it talks about plenty of great information. Anyhow, was overcurious whether you would love to exchange links with my web site, as I am looking to build contacts to further amplify and reach better audience for my site. I do not mind you stationing my contacts at the homepage, just accepting this web links on this respective page is good and adequate. Moreover, please message me back at my web portal if you are interested in exchanging links with me, I would really appreciate that. Best wishes from me and hopefully to hear from you as soon as possible!

  2. pruthvi says:

    i followed the steps and the error is “unable to load CLR”. Any ideas?

Leave A Comment