docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IOuterUnityTestAction

    When implemented by an attribute, this interface implemented to provide actions to execute before setup and after teardown of tests.

    Namespace: UnityEngine.TestTools
    Assembly: UnityEngine.TestRunner.dll
    Syntax
    public interface IOuterUnityTestAction

    Methods

    AfterTest(ITest)

    Executed after each test is run

    Declaration
    IEnumerator AfterTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test that has just been run.

    Returns
    Type Description
    IEnumerator

    Enumerable collection of actions to perform after test teardown.

    BeforeTest(ITest)

    Executed before each test is run

    Declaration
    IEnumerator BeforeTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test that is going to be run.

    Returns
    Type Description
    IEnumerator

    Enumerable collection of actions to perform before test setup.

    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)