-
Notifications
You must be signed in to change notification settings - Fork 158
Known Problems
-
There is no test status in Visual Studio corresponding to NUnit's Inconclusive result, so tests with this result are reported as Not Run. Click on the individual test to see the result.
-
Theories are reported as individual cases, rather as a single unit.
-
In NUnit, tests have names, which are not necessarily unique. Visual Studio wants the names to be unique. So if two tests have the same name, VS displays a warning message in the output window. The message may be ignored. Two separate results will be shown under the single test in the explorer pane.
-
Startup performance is substantially improved but is still slower than using NUnit directly.
-
Applies to pre-VS2017: A VSIX adapter of older version will be used regardless of version of NuGet adapter.
Workaround: Make sure you have upgraded VSIX adapter to latest version, or uninstalled it if you have the NuGet adapter in a solution. The adapter will display its version number in the Output window under Tests.
Avoid using the VSIX adapter for VS2017 and upwards. It is being deprecated, but is still supported optionally in VS2019.
-
Visual Studio 2017 Live Unit Testing require NUnit3. The NUnit2 adapter doesn't support Live Unit Testing.
-
Exception: Could not load file or assembly 'nunit.engine'
- Is caused by an incomplete copy of the adapter in the Visual Studio cache. Close Visual Studio and deleteC:\Users\username\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnit3TestAdapter.{{version}}
-
From version 16.2 (Visual Studio 2019) the Explicit keyword is no longer explicitly supported by Visual Studio. If you want to use it, it does exist as a Category also, so you can use it as a category filter.
-
Versions of ReSharper earlier than the 8.2 version has an issue with the NuGet adapter, which will prevent NUnit tests from running. Make sure you have updated Reshaper to at least version 8.2.
-
ReSharper version 2018.1 are not able to work with adapter versions >= 3.12. This is fixed in 2018.3. See Issue638 for details.
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0