docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExecutionSettings

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

    Inheritance
    object
    ExecutionSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.TestTools.TestRunner.Api
    Assembly: UnityEditor.TestRunner.dll
    Syntax
    [Serializable]
    public class ExecutionSettings

    Constructors

    ExecutionSettings(params 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
    int

    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
    bool

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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)