NUnit Test Adapter


NUnit adapter for integrated test execution under Visual Studio 2012 (all updates), Visual Studio 2013 (all updates), and the Visual Studio 2015 Preview and CTPs. Compatible with NUnit 2.0 through 2.6.4.

(32) Review
Visual Studio
2015, 2013, 2012
Download (264,674)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (32)
Q and A (51)
Sign in to write a review
Sort by:

by Kjetil Tonstad | June 24 2015

Nice tool!

by Dio Phung | January 20 2015

Very neat way to run tests. The NUnit [TestCase] attribute is definitely an useful one, save me lots of time writing test cases.

It's fun and easy to test now, thanks to this test runner. CI is now complete: code checkin-->trigger build-->trigger tests -->alert via email.

by Rob Prouse | December 03 2014

Great for running your tests in Visual Studio's built in test runner. For those that complain about the layout of the tests or the UI, blame Microsoft, not the adapter.

by Kaule Steria | October 16 2014

by rmatsick | July 18 2014

Version is broken! Do not update from version! I was helping someone with their new VS2013 installation when the only NUnit Adapter version available in the extensions was He tried running our most recent project which worked under and it complains about the "executor" not being found. I wanted to isolate the problem between his installation and mine found that my NUnit Adapter extension was requesting an update. I AM VERY SORRY THAT I DID THIS. As mine is broken exactly the same as his. I cannot run any tests using this adapter now. I read the bug reports and it appears everyone is having the same problem. I tried to roll mine back to version but there is no way to do this! NO JOY

by Jakub Keller | June 04 2014

I love this tool. Great start to something that can be a very formidable competitor to ReSharper's nUnit extension. Keep up the good work!

by Dima_Limon | February 17 2014

I totally agree with Barbara Nolmans Post below.

by Barbara N. Post | December 10 2013

It works well but Test Explorer window presentation list is somewhat poor for me : I have many tests, and many test classes have a common base class. Some methods have the same name in several test classes.

So I have a display problem : when sorting by class, I see tests classes base class listed many times, then real classe listed, since they have a common base class the base class is listed every time.

When sorting by project, I see all homonyms methods one aside another. I see which file/class is concerned at bottom if I select an item.

I guess I have to complain to MS or maybe can you do something in your adapter to :
a. fix class listing? (don't repeat base class in listing but list it once)
b. see whether sorted by project items can display both test class and method names?

Thank you

by karl140.6 | October 11 2013

Thank you very much for this tool. All the VS 2013RC tools worked perfectly with Nunit.



by Tomasz Kajetan Stańczak | October 03 2013

great tool - gives you the in-VS test runner and code coverage for NUnit!

by steveculshaw | September 18 2013

Great to have access to NUnit tests in VS

by Samuel Kupferschmid | September 04 2013

by Alex Pearlstein | August 27 2013

Has made my life much easier thus far, I hated to have to run the tests in a separate application.

by Mark Rucker | July 20 2013

Thanks for integrating a great tool into VS.

by Mike L Watkins | July 18 2013

Great plug in. I love being able to create test playlists now and isolate the tests to run to what I am working on. It seems a little slow to start up the tests but all the other aspects of this plugin make it well worth while.

Thanks for writing this!

by barisdemir | May 29 2013

Newer update on May 29th;
The bug has been fixed with version and everything works fine (you may need to uninstall and re-install the package)
Quick turnaround.
Thanks everyone, great extension to visual studio.

The bug seems to be opened by others and a fix is on the way.
Check the link below;

I was very happy with the adapter but when I upgraded this morning (May 28th) to the beta 0.95 version, I can NO LONGER DEBUG the tests.

I have the following version for Visual Studio.
Thanks for this great tool but is there a way to rollback to previous version until this issue is resolved.
Baris Demir

Microsoft Visual Studio Premium 2012
Version 11.0.60315.01 Update 2
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Premium

by skonthebass | May 28 2013

Upon updating (Beta 5)I'm experiencing the problems mentioned; tests run and immediately end, tests don't actually execute. Need to roll back

by RKreissl | May 28 2013

I'm unable to debug unit tests. They run fine without debugger. I'm using VS Ultimate 2012 Update 2.

by Chris Westermann | May 27 2013

After installing this I can no longer debug a unit test. Starts up and then ends immediately.

by jroney | April 04 2013

I've had no problems in 3 months of usage. It's fantastic to be able to run NUnit tests from within VS.

1 - 20 of 32 Items   
Sign in to start a discussion

  • How to run the Nunit test from the Test Explorer
    1 Posts | Last post April 21, 2015
    • Hello,
      I am trying to run NUnit test from Test Explorer window but facing an error. I have installed NUnit adapter and can see all of my tests in the window. When I try to run the test which calls a web service hosted locally on my machine it throws the Impersonation error. (System.ArgumentException: Invalid token for impersonation - it cannot be duplicated). Please follow this link( for more information. 
      Strangely the same test works and passes in the UnitTestExplorer window I opened from Resharper menu and also in NUnit GUI. 
      Please help.
  • Associating NUnit Test Cases with VSTFS Test Cases
    2 Posts | Last post April 21, 2015
    • Is the NUnit Adapter for Visual studio compatible with VSTFS Test cases work items?
      Currently I have a VSTFS 2012 and want to use NUnit to run Data Driven test cases.
      The automated test cases are part of multiple Test plans in Microsoft Test Manager 2012 and will run as part of the Build deployment validation
    • Short answer: no, not yet. Long answer: MTM does not yet use the visual studio execution engine that was introduced in VS2012. Therefore, no test adapter will work in this environment. MTM still uses the old, overly complicated MS Test Adapter framework. So this is not an issue of NUnit, but rather that Microsoft has missed so far to migrate MTM to the new test runner / test adapter framework.
  • No test is available when trying to filter TFS Build
    3 Posts | Last post April 15, 2015
    • Hello,
      I'm receiving the message:
      "No test is available in x:\Builds\6\146\Binaries\Web.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again."
      We are running VS 2012 for the tfs build server.  I just updated our customactivityrepo with the latest nunit vs test adapter libraries.  I can run all tests from the build definition but when I try to set this filter "TestCategory=BVT" I receive the message above.
      Any clue where I'm going wrong?
    • Anyone try the latest NUnit Test Adapter against Visual Studio 2012 TFS build Server?
      Still can't get the filters working.
    • Cool I was able to get this Test Case Filter to work "Name=Test",  still can't get TestCategory=BVT working.
      I tried specifying this trait at the class level as well as the method level:
  • Error installing about .NET framework
    6 Posts | Last post April 02, 2015
    • While installing I got an error this could not be installed because of .net framework not available. 
      1/30/2015 01:09:24 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: The extension 'NUnit Test Adapter' requires a version of the .NET Framework that is not installed.
      This is because 2015 has been installed. Other VISX suffer from this too. WebEssentials VISX has solved this.
    • AHHH, PLEASE FIX! This is really annoying. :)
    • I removed my VS 2015 installation and still I am affected by this. Cannot install, so is there a workaround or a update coming soon?
    • From
      "Visual Studio 2015 performs an in place upgrade of .NET 4.5 to .NET 4.5.3. The extension.vsixmanifest, however, explicitly targets 4.5. Changing to [4.5,) resolves"
    • As a workaround i ranamed the vsix-File to 
      Then edit the extension.vsixmanifest 
      to   <SupportedFrameworkRuntimeEdition MinVersion="4.5.3"  />
      rename back
      Installation succeded
    • Version 2.0 is released now with full support for VS2015
  • EventListeners
    1 Posts | Last post March 20, 2015
    • Is there any way to user EventListeners ( with NUnit Test Adapter on Visual Studio 2012?  I realize it can work with Nunit console without this
      Please help me
  • Issue with run after build on - modified test does not run
    2 Posts | Last post October 15, 2014
    • Hi,
      When I run with "Run after build" on and change a test to make it fail and then build, the code builds and then the test discovery starts with the following log and the changed test is not run.
      ------ Discover test started ------
      NUnit discovering tests is started
      NUnit discovering test is finished
      The specified type member 'Stale' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
      ========== Discover test finished: 1869 found (0:00:01.3820795) ==========
      My guess is something is going wrong with the nUnit adapter, thoughts?
      I am running:
       - VS2013 Update 3 (12.0.30723.00)
       - nUnit Adapter
    • Ignore this - i have posted it as an issue in the GitHub project
  • TFS 2012 Build Server NUnit Exception
    7 Posts | Last post September 30, 2014
    • I have a NUnit test project that I'm trying to run on my TFS 2012 Build server. I'm getting the following error:
          Exception System.InvalidOperationException, Exception thrown executing tests
          No test is available in C:\Builds\1\Projects\NUNIT Test\bin\NUnitTestProject.dll C:\Builds\1\Projects\NUNIT Test\bin\NUnitTestProject.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
      I Have the NUnit.VisualStudio.TestAdapter installed from NuGet and referenced in the project.
      I also have set the Version control path to custom assemblies set on the controller, which contains (they basically are a copy of the NuGet package):
      For test purposes, I'm only building the NUnit test project.
      My test class is very simple and is the following:
      using NUnit.Framework;
      namespace NUnitTestProject
          public class MySuperTests
              public void MyFirstUnitTestMethod_ReturnsTrue()
      Is there something I haven't done correctly?
    • The problem I believe lies in the 1.1.X.X version.
      Updating to I did not have the exception anymore, however, I did have the tests not found problem.
      There are some issues going on about that on github
    • Problem has been fixed in version of the NUnit Test Adapter
    • You can get the bugfix release for this issue here: 
    • Is there any word on when the version will make it to NuGet? I understand that I can download vsix manually, but that won't really help on the build server, where I'm counting on NuGet to keep things up to date. I don't see even when I allow PreRelease, and I do not have the required rights to install the vsix on the build server. So what am I supposed to do?
    • When will the InvalidOperationException fix be released on nuget?  This is a sev one exception!
    • 1.2 is released now, which contains the fixes for the InvalidOperationException.    It is also on Nuget. 
  • NuGet package version 1.2
    2 Posts | Last post September 30, 2014
    • When will the bugfix release be available as a NuGet package?
    • Version 1.2 which contain the fixes are now released.
  • shailp
    2 Posts | Last post July 25, 2014
    • I am getting below error while running nunit test.
      ------ Run test started ------
      Could not find test executor with URI 'executor://nunittestexecutor/'.  Make sure that the test executor is installed and supports .net runtime version 2.0.50727.5477.
      fairly new with nunit. checked with of #10. But could not resolve the issue. I am using VS2012 with 3.5 framework. NUnit.VisualStudio.TestAdapter.dll version is
      Did anybody had the same problem. Appreciate if you can share the resolution.
    • Download the  the bugfix release for this issue here: 
  • No tests available
    11 Posts | Last post June 16, 2014
    • I'm getting the following in VS 2013 Preview and VS 2012 Update 3:
      ------ Discover test started ------
      NUnit discovering tests is started
      NUnit discovering test is finished
      ========== Discover test finished: 158 found (0:00:01.993278) ==========
      ------ Run test started ------
      No test is available in {list of assemblies}. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
      ========== Run test finished: 0 run (0:00:00.1640103) ==========
      Is anyone else getting this?
    • I'm having this issue as well, did you find a solution?
    • Unfortunately I have not figured out a way around this.
    • Thanks for your reply Mike.
    • I have the same issue with Team Foundation Service and an onsite tfs 2013 build controller. Anyone have a work around?
    • Sorry for late response. Do you guys still have this issue ?  Have you updated to 0.97 ?  
      Do you use the nuget adapter or the extension adapter ?
      I have seen this in some cases, but have no consistent repro.  Can one of you provide  a small repro, mail to terje at  
    • I run the latest version, haven't had a problem, then I added a class that inherited from another testclass and suddenly I got this problem. If I remove the inheritence the problem disappears. 
    • And after a little more work, I found that I had a testmethod with a parameter that had the same name as another method with another type of parameter. Changed the name, and voala, working again. 
    • I have the same erreur when adding an app.config file with a configSection :
      ========== Discover test finished: 32 found (0:00:00,4980285) ==========
      ------ Run test started ------
      NUnit executing tests is started
      Run started: C:\Dev\TestGenerator\Foundation.Tests\bin\Debug\Foundation.Tests.dll
      Exception thrown executing tests in C:\Dev\TestGenerator\TestGenerator.Tests\bin\Debug\TestGenerator.Tests.dll
      System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element. (C:\Dev\TestGenerator\TestGenerator.Tests\bin\Debug\TestGenerator.Tests.dll.config line 11)
         at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
         at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
         at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
         at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
         --- End of inner exception stack trace ---
      Server stack trace: 
         at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
         at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
         at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
         at System.Configuration.ConfigurationManager.GetSection(String sectionName)
         at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
         at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection()
         at System.Diagnostics.DiagnosticsConfiguration.Initialize()
         at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize()
         at System.Diagnostics.TraceInternal.Init
    • ALea, thanks for posting your findings. I'm running into the same issue. I had some classes in my test DLL that inherit from classes in my source code DLL. (The classes in question do not contain any unit tests themselves - they are merely helper/fake classes.) If I comment out the inheritance, voila - the tests appear in Test Explorer.
      I would file a bug, but the bug report link takes me to Launchpad, where it says the NUnit Test Adapter project no longer uses Launchpad. (If there is somewhere else I should file a bug, I will be happy to do so.)
      I'm using Visual Studio Ultimate 2012 (Version 11.0.61030.00 Update 4).
    • Hi Ms Krysta.  You can file the bug at Issues under
      If you also can upload/attach a small repro, we would be grateful. 
1 - 10 of 51 Items