{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ExecutionSettings | Test Framework | 2.0.1-exp.2
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
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.TestTools.TestRunner.Api
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class ExecutionSettings : ISerializationCallbackReceiver

    Constructors

    Name Description
    ExecutionSettings(params Filter[])

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

    Fields

    Name Description
    customRunnerName
    filters

    A collection of Filter to execute tests on.

    overloadTestRunSettings

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

    playerHeartbeatTimeout

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

    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.

    Properties

    Name Description
    IsBuildOnly
    playerSavePath
    targetPlatform

    The BuildTarget platform to run the test on. If set to null, then the Editor is the target for the tests.

    Methods

    Name Description
    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    ToString()

    Implementation of ToString() that builds a string composed of the execution settings.

    In This Article
    Back to top
    Copyright © 2023 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)