Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    FrameworkPackageSettings
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit
    Assembly: nunit.framework.dll
    Syntax
    public static class FrameworkPackageSettings

    Fields

    View Source

    DebugTests

    Flag (bool) indicating whether tests are being debugged.

    Declaration
    public const string DebugTests = "DebugTests"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    DefaultTestNamePattern

    The default naming pattern used in generating test names

    Declaration
    public const string DefaultTestNamePattern = "DefaultTestNamePattern"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    InternalTraceWriter

    A TextWriter to which the internal trace will be sent.

    Declaration
    public const string InternalTraceWriter = "InternalTraceWriter"
    Field Value
    Type Description
    string
    View Source

    LOAD

    A list of tests to be loaded.

    Declaration
    public const string LOAD = "LOAD"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    StopOnError

    If true, execution stops after the first error or failure.

    Declaration
    public const string StopOnError = "StopOnError"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    View Source

    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
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0