dotCover 2020.2 Help


ReSharper | Options | Tools | Unit Testing | Test Frameworks | NUnit

In this page of dotCover options, you can adjust unit testing settings related to NUnit tests.

Enable NUnit support By default, dotCover adds action indicators allowing you to execute NUnit tests right from the editor and automatically discovers NUnit tests in your solution. Clear check boxes corresponding to specific NUnit versions to disable this behavior.
Depending on these settings, dotCover will use bundled NUnit test runners: v. 2.6.4 and/or v. 3.6.1 correspondingly.

Custom NUnit installation

Use specified custom NUnit

If you want to use another NUnit version, tick this checkbox and enter the path to the local NUnit installation into the corresponding field


  • dotCover 2020.2 supports NUnit 3.10.1 and later.

  • If there are any NUnit addins in this custom installation, they will be loaded too.

NUnit 2

Load NUnit Addins

If support of NUnit 2x is selected above and you need to use NUnit addins for this bundled version, put the addins in the NUnit2\addins subfolder of the dotCover installation directory (which is shown for your convenience) and choose how to load them.

NUnit 3

When running tests, set Environment.CurrentDirectory to:

Starting from NUnit 3, current directory is not set by the NUnit framework (see this answer in the NUnit tracker). dotCover sets the current directory to the temp folder by default, but you can change it.

Test Parameters

Use this list to add {name, value} pairs, which will be available in your NUnit tests via NUnit.Framework.TestContext.Parameters at runtime.

If you have specified a .runsettings file in Visual Studio, these pairs will be combined to TestRunParameters defined in the currently selected .runsettings file. In case of conflicting parameters, values specified in dotCover settings will have priority.

<?xml version="1.0" encoding="utf-8" ?> <RunSettings> <TestRunParameters> <Parameter name ="param1" value="value1" /> </TestRunParameters> </RunSettings>
Last modified: 08 May 2020