docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICallbacks

    Callbacks in the TestRunnerApi for the test stages when running tests.

    Namespace: UnityEditor.TestTools.TestRunner.Api
    Assembly: UnityEditor.TestRunner.dll
    Syntax
    public interface ICallbacks

    Methods

    RunFinished(ITestResultAdaptor)

    A callback invoked when a test run is finished.

    Declaration
    void RunFinished(ITestResultAdaptor result)
    Parameters
    Type Name Description
    ITestResultAdaptor result

    The result of the test run.

    RunStarted(ITestAdaptor)

    A callback invoked when a test run is started.

    Declaration
    void RunStarted(ITestAdaptor testsToRun)
    Parameters
    Type Name Description
    ITestAdaptor testsToRun

    The full loaded test tree.

    TestFinished(ITestResultAdaptor)

    A callback invoked when each individual node of the test tree has finished executing.

    Declaration
    void TestFinished(ITestResultAdaptor result)
    Parameters
    Type Name Description
    ITestResultAdaptor result

    The result of the test tree node after it had been executed.

    TestStarted(ITestAdaptor)

    A callback invoked when each individual node of the test tree has started executing.

    Declaration
    void TestStarted(ITestAdaptor test)
    Parameters
    Type Name Description
    ITestAdaptor test

    The test node currently executed.

    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)