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.

(38) Review
Visual Studio
2015, 2013, 2012
Download (390,967)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (38)
Q and A (56)
Sign in to write a review
Sort by:

by Ministryotech | May 23 2016

This doesn't seem to work properly in Visual Studio 2015 - I keep getting TypeLoadException's

by Chris F Carroll | December 28 2015

Perfect. Simple. Works.

by KirilD | October 06 2015

by Anonymous11588 | October 06 2015

Just works perfectly!

by Dman2306 | August 19 2015

Super happy I found this. I'm glad I can use NUnit without leaving VS2015!

by Felipe B Oriani | July 02 2015

Great tool. Works fine with Visual Studio 2013 and NUnit 2.6.4.

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 Sopra 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 Karl Shifflett (kdawg) | 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.

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

  • It doesn't work for me.
    1 Posts | Last post July 13, 2016
    • I installed the Version 3.4.0 from NuGet.
      For Visial Studio 2013 and 2015 I have the message:
      > Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
      For Visual Studio 2012 it works only with admin rights, because it writes the log-file in the Program Files (x86).
  • Updated to version 3.2.0 and adapter stopped working
    2 Posts | Last post June 09, 2016
    • Getting error messages with test discovery failing for solutions with Debug|x86 for all projects
      Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in ****.dll   run tests in process - a 32 bit process is required.
      In addition to upgrading the NUnit adapter from the nuget gallery I had also installed the ConcurrencyVisualizer plugin and GhostDoc plugin (both uninstalled now).
      Also tried updating NUnit from 3.2.0 to 3.2.1 but did not help
    • This applies to NUnit 3 Test Adapter not this version
  • How to run branch coverage with this plugin?
    1 Posts | Last post August 27, 2015
    • Firstly, This is a great tool, thanks. And I found the default coverage generated by Visual Studio is line coverage. Could I get branch coverage with it?
  • Integration with Visual Studio Test Professional
    2 Posts | Last post August 18, 2015
    • Does Visual Studio Test Professional integrate well with NUnit? We are considering using it in combination with TFS, and were wondering if the test manager would also contain the unit testing written in NUnit?
    • See answer from Monger further down, but short answer: No. 
  • Group by Fixture / Class
    3 Posts | Last post August 18, 2015
    • Hi, 
      in the release notes of the adapter it says: "Grouping by fixture is not yet Visual Studio".
      Well... I think with Update 3 or 4 VS 2012 included this grouping. However, it doesn't seem to work as intended. If I create subclasses, e.g.
      class Parent
         <Test> Sub DoSth()
      End Class
      Class Child
         inherits Parent
      End Class
      then the Test Explorer displays two tests in two groupings, and both groups are named "Parent". I'm pretty sure MSTest is doing this right, so I have to assume that the test adapter is reporting the test class names wrong for some reason.
      Is this a known issue? And if so, is there a solution to it?
    • It appears this is still an issue in the 7/23/2015 2.0.0 release, if you subclass a test, the name of the base class shows in the VS [2013] test explorer, not the name of the subclass, as would be expected.
      Is there a place I should file a bug report?
    • Bugs are filed at 
      We do have some issues with inheritance, there are a couple of issues on that already.
      @Goppeltm raised this one, which in this particular case is: 
      It requires changes to NUnit itself, and will be part of the 3.0 version
  • NUnit Tests not found
    2 Posts | Last post August 18, 2015
    • Hi,
      i included the NUnit Test Adapter as nuget Package in my TestProject.
      Bunt when I run vstest.console.exe BuildTasks.Tests.csproj I get the following warning:
      Warning: No test is available in the provided sources. Make sure that installed test discoverers & executors, platform & framework version settings are appropri ate and try again.
      It works inside VS2015.
      Am i missing something?
      Thanks in advance
    • You must add the path to the packages folder, using the /TestAdapterPath:packages (if you run vstest.console from the folder above packages).  
  • 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
1 - 10 of 56 Items