docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TestUtility

    Utility class that determines if the app is running under the Test Runner.

    Inheritance
    object
    TestUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class TestUtility

    Methods

    IsAutomatedTestRun()

    Returns true when the -runTests command-line argument is present, indicating the application is running under the Test Runner.

    Declaration
    public static bool IsAutomatedTestRun()
    Returns
    Type Description
    bool

    true if running under the Unity Test Runner; otherwise, false.

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