docs.unity.cn
    Show / Hide Table of Contents

    Class ExecutionSettings

    A set of execution settings defining how to run tests, using the TestRunnerApi.

    Inheritance
    Object
    ExecutionSettings
    Namespace: UnityEditor.TestTools.TestRunner.Api
    Syntax
    [Serializable]
    public class ExecutionSettings

    Constructors

    ExecutionSettings(Filter[])

    Creates an instance with a given set of filters, if any.

    Declaration
    public ExecutionSettings(params Filter[] filtersToExecute)
    Parameters
    Type Name Description
    Filter[] filtersToExecute

    Set of filters

    Fields

    filters

    A collection of Filter to execute tests on.

    Declaration
    [SerializeField]
    public Filter[] filters
    Field Value
    Type Description
    Filter[]

    overloadTestRunSettings

    An instance of ITestRunSettings to set up before running tests on a Player.

    Declaration
    public ITestRunSettings overloadTestRunSettings
    Field Value
    Type Description
    ITestRunSettings

    playerHeartbeatTimeout

    The time, in seconds, the editor should wait for heartbeats after starting a test run on a player. This defaults to 10 minutes.

    Declaration
    [SerializeField]
    public int playerHeartbeatTimeout
    Field Value
    Type Description
    Int32

    runSynchronously

    Note that this is only supported for EditMode tests, and that tests which take multiple frames (i.e. [UnityTest] tests, or tests with [UnitySetUp] or [UnityTearDown] scaffolding) will be filtered out.

    Declaration
    [SerializeField]
    public bool runSynchronously
    Field Value
    Type Description
    Boolean

    If true, the call to Execute() will run tests synchronously, guaranteeing that all tests have finished running by the time the call returns.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, July 19, 2022
    Terms of use