Class FrameworkPackageSettings
- Namespace
- NUnit
- Assembly
- nunit.framework.dll
FrameworkPackageSettings is a static class containing constant values that are used as keys in setting up a TestPackage. These values are used in the framework, and set in the runner. Setting values may be a string, int or bool.
public static class FrameworkPackageSettings
- Inheritance
-
FrameworkPackageSettings
- Inherited Members
Fields
DebugTests
Flag (bool) indicating whether tests are being debugged.
public const string DebugTests = "DebugTests"
Field Value
DefaultCulture
A string representing the default thread culture to be used for running tests. String should be a valid BCP-47 culture name. If culture is unset, tests run on the machine's default culture.
public const string DefaultCulture = "DefaultCulture"
Field Value
DefaultTestNamePattern
The default naming pattern used in generating test names
public const string DefaultTestNamePattern = "DefaultTestNamePattern"
Field Value
DefaultTimeout
Integer value in milliseconds for the default timeout value for test cases. If not specified, there is no timeout except as specified by attributes on the tests themselves.
public const string DefaultTimeout = "DefaultTimeout"
Field Value
DefaultUICulture
A string representing the default thread UI culture to be used for running tests. String should be a valid BCP-47 culture name. If culture is unset, tests run on the machine's default culture.
public const string DefaultUICulture = "DefaultUICulture"
Field Value
InternalTraceLevel
The InternalTraceLevel for this run. Values are: "Default", "Off", "Error", "Warning", "Info", "Debug", "Verbose". Default is "Off". "Debug" and "Verbose" are synonyms.
public const string InternalTraceLevel = "InternalTraceLevel"
Field Value
InternalTraceWriter
A TextWriter to which the internal trace will be sent.
public const string InternalTraceWriter = "InternalTraceWriter"
Field Value
LOAD
A list of tests to be loaded.
public const string LOAD = "LOAD"
Field Value
NumberOfTestWorkers
The number of test threads to run for the assembly. If set to 1, a single queue is used. If set to 0, tests are executed directly, without queuing.
public const string NumberOfTestWorkers = "NumberOfTestWorkers"
Field Value
PauseBeforeRun
Flag (bool) indicating whether to pause execution of tests to allow the user to attach a debugger.
public const string PauseBeforeRun = "PauseBeforeRun"
Field Value
RandomSeed
The random seed to be used for this assembly. If specified as the value reported from a prior run, the framework should generate identical random values for tests as were used for that run, provided that no change has been made to the test assembly. Default is a random value itself.
public const string RandomSeed = "RandomSeed"
Field Value
RunOnMainThread
If true, the tests will run on the same thread as the NUnit runner itself
public const string RunOnMainThread = "RunOnMainThread"
Field Value
StopOnError
If true, execution stops after the first error or failure.
public const string StopOnError = "StopOnError"
Field Value
SynchronousEvents
If true, use of the event queue is suppressed and test events are synchronous.
public const string SynchronousEvents = "SynchronousEvents"
Field Value
TestParameters
Parameters to be passed on to the tests, serialized to a single string which needs parsing. Obsoleted by TestParametersDictionary; kept for backward compatibility.
public const string TestParameters = "TestParameters"
Field Value
TestParametersDictionary
Parameters to be passed on to the tests, already parsed into an IDictionary<string, string>. Replaces TestParameters.
public const string TestParametersDictionary = "TestParametersDictionary"
Field Value
WorkDirectory
Full path of the directory to be used for work and result files. This path is provided to tests by the framework TestContext.
public const string WorkDirectory = "WorkDirectory"