docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IErrorCallbacks

    An extended version of the ICallbacks, which get invoked if the test run fails due to a build error or if any IPrebuildSetup has a failure.

    Inherited Members
    ICallbacks.RunStarted(ITestAdaptor)
    ICallbacks.RunFinished(ITestResultAdaptor)
    ICallbacks.TestStarted(ITestAdaptor)
    ICallbacks.TestFinished(ITestResultAdaptor)
    Namespace: UnityEditor.TestTools.TestRunner.Api
    Assembly: UnityEditor.TestRunner.dll
    Syntax
    public interface IErrorCallbacks : ICallbacks

    Methods

    OnError(string)

    Method invoked on failure.

    Declaration
    void OnError(string message)
    Parameters
    Type Name Description
    string message

    The error message detailing the reason for the run to fail.

    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)