-
Notifications
You must be signed in to change notification settings - Fork 158
Tips And Tricks
####NOTE: As of the 3.0 final release, these registry settings are no longer recognized. Instead, use settings in the
.runsettings
file.
Certain NUnit Test Adapter settings are configurable using a .runsettings file. The following options are available:
Key | Type | Options | Default |
---|---|---|---|
InternalTraceLevel | string | Off, Error, Warning, Info, Verbose, Debug | ? |
NumberOfTestWorkers | int | nr of workers | -1 |
ShadowCopyFiles | bool | True, False | False |
Verbosity | int | 0-5 ? | 0 |
UseVsKeepEngineRunning | bool | True, False | False |
BasePath | string | path | ? |
PrivateBinPath | string | directory1;directory2;etc | ? |
RandomSeed | int | seed integer | random |
https://github.com/nunit/nunit3-vs-adapter/blob/master/src/NUnitTestAdapter/AdapterSettings.cs#L143
Certain settings in the registry affect how the adapter runs. All these settings are added by using RegEdit under the key HKCU\Software\nunit.org\VSAdapter.
By default NUnit no longer uses shadowcopy. If this causes an issue for you shadowcopy can be enabled by setting the DWORD value UseShadowCopy to 1.
By default the NUnit adapter will "Kill" the Visual Studio Test Execution engine after each run. Visual Studio 2013 and later has a new setting under its top menu, Test | Test Settings | Keep Test Execution Engine Running. The adapter normally ignores this setting.
In some cases it can be useful to have the engine running, e.g. during debugging of the adapter itself. You can then set the adapter to follow the VS setting by setting the DWORD value UseVsKeepEngineRunning to 1.
Normally the adapter reports exceptions using a short format, consisting of the message only. You can change it to report a verbose format that includes the stack trace, by setting a the DWORD value Verbosity to 1.
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0