Class FrameworkPackageSettings
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.
Inherited Members
Namespace: NUnit
Assembly: nunit.framework.dll
Syntax
public static class FrameworkPackageSettings
Fields
View SourceDebugTests
Flag (bool) indicating whether tests are being debugged.
Declaration
public const string DebugTests = "DebugTests"
Field Value
Type | Description |
---|---|
string |
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.
Declaration
public const string DefaultCulture = "DefaultCulture"
Field Value
Type | Description |
---|---|
string |
DefaultTestNamePattern
The default naming pattern used in generating test names
Declaration
public const string DefaultTestNamePattern = "DefaultTestNamePattern"
Field Value
Type | Description |
---|---|
string |
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.
Declaration
public const string DefaultTimeout = "DefaultTimeout"
Field Value
Type | Description |
---|---|
string |
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.
Declaration
public const string DefaultUICulture = "DefaultUICulture"
Field Value
Type | Description |
---|---|
string |
InternalTraceLevel
The InternalTraceLevel for this run. Values are: "Default", "Off", "Error", "Warning", "Info", "Debug", "Verbose". Default is "Off". "Debug" and "Verbose" are synonyms.
Declaration
public const string InternalTraceLevel = "InternalTraceLevel"
Field Value
Type | Description |
---|---|
string |
InternalTraceWriter
A TextWriter to which the internal trace will be sent.
Declaration
public const string InternalTraceWriter = "InternalTraceWriter"
Field Value
Type | Description |
---|---|
string |
LOAD
A list of tests to be loaded.
Declaration
public const string LOAD = "LOAD"
Field Value
Type | Description |
---|---|
string |
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.
Declaration
public const string NumberOfTestWorkers = "NumberOfTestWorkers"
Field Value
Type | Description |
---|---|
string |
PauseBeforeRun
Flag (bool) indicating whether to pause execution of tests to allow the user to attach a debugger.
Declaration
public const string PauseBeforeRun = "PauseBeforeRun"
Field Value
Type | Description |
---|---|
string |
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.
Declaration
public const string RandomSeed = "RandomSeed"
Field Value
Type | Description |
---|---|
string |
RunOnMainThread
If true, the tests will run on the same thread as the NUnit runner itself
Declaration
public const string RunOnMainThread = "RunOnMainThread"
Field Value
Type | Description |
---|---|
string |
StopOnError
If true, execution stops after the first error or failure.
Declaration
public const string StopOnError = "StopOnError"
Field Value
Type | Description |
---|---|
string |
SynchronousEvents
If true, use of the event queue is suppressed and test events are synchronous.
Declaration
public const string SynchronousEvents = "SynchronousEvents"
Field Value
Type | Description |
---|---|
string |
TestParameters
Parameters to be passed on to the tests, serialized to a single string which needs parsing. Obsoleted by TestParametersDictionary; kept for backward compatibility.
Declaration
public const string TestParameters = "TestParameters"
Field Value
Type | Description |
---|---|
string |
TestParametersDictionary
Parameters to be passed on to the tests, already parsed into an IDictionary<string, string>. Replaces TestParameters.
Declaration
public const string TestParametersDictionary = "TestParametersDictionary"
Field Value
Type | Description |
---|---|
string |
ThrowOnEachFailureUnderDebugger
If true, asserts in multiple asserts block will throw first-chance exception on failure.
Declaration
public const string ThrowOnEachFailureUnderDebugger = "ThrowOnEachFailureUnderDebugger"
Field Value
Type | Description |
---|---|
string |
WorkDirectory
Full path of the directory to be used for work and result files. This path is provided to tests by the framework TestContext.
Declaration
public const string WorkDirectory = "WorkDirectory"
Field Value
Type | Description |
---|---|
string |