PackageSettings
PackageSettings is a static class containing constant values that
are used as keys in setting up a TestPackage. These values are used in
the engine and framework. Setting values may be a string, int or bool.
The name of the config to use in loading a project.
If not specified, the first config found is used.
Bool indicating whether the engine should determine the private
bin path by examining the paths to all the tests. Defaults to
true unless PrivateBinPath is specified.
The ApplicationBase to use in loading the tests. If not
specified, and each assembly has its own process, then the
location of the assembly is used. For multiple assemblies
in a single process, the closest common root directory is used.
Path to the config file to use in running the tests.
Bool flag indicating whether a debugger should be launched at agent
startup. Used only for debugging NUnit itself.
Flag (bool) indicating whether tests are being debugged.
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.
Indicates that test runners should be disposed after the tests are executed
Indicates how to load tests across AppDomains. Values are:
"Default", "None", "Single", "Multiple". Default is "Multiple"
if more than one assembly is loaded in a process. Otherwise,
it is "Single".
The InternalTraceLevel for this run. Values are: "Default",
"Off", "Error", "Warning", "Info", "Debug", "Verbose".
Default is "Off". "Debug" and "Verbose" are synonyms.
A TextWriter to which the internal trace will be sent.
A list of tests to be loaded.
The maximum number of test agents permitted to run simultneously.
Ignored if the ProcessModel is not set or defaulted to Multiple.
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.
The private binpath used to locate assemblies. Directory paths
is separated by a semicolon. It's an error to specify this and
also set AutoBinPath to true.
Indicates how to allocate assemblies to processes. Values are:
"Default", "Single", "Separate", "Multiple". Default is "Multiple"
for more than one assembly, "Separate" for a single assembly.
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.
Bool flag indicating that the test should be run in a 32-bit process
on a 64-bit system. By default, NUNit runs in a 64-bit process on
a 64-bit system. Ignored if set on a 32-bit system.
Indicates the desired runtime to use for the tests. Values
are strings like "net-4.5", "mono-4.0", etc. Default is to
use the target framework for which an assembly was built.
Bool flag indicating that the test assemblies should be shadow copied.
Defaults to false.
If true, execution stops after the first error or failure.
If true, use of the event queue is suppressed and test events are synchronous.
Full path of the directory to be used for work and result files.
This path is provided to tests by the frameowrk TestContext.