docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method CancelTestRun

    CancelTestRun(string)

    Cancel the test run with a given guid string. The guid string can be retrieved when executing the test run. The test run may take multiple frames to finish cleaning up from the test run. Any current active test will be marked as "Canceled" and any other remaining tests marked as "NotRun".

    Declaration
    public static bool CancelTestRun(string guid)
    Parameters
    Type Name Description
    string guid

    Test run guid string.

    Returns
    Type Description
    bool

    A boolean indicating whether canceling of the given job was successful. Canceling of a job will not be a success if no test job is found matching the guid, if the job is not currently or the job is already canceling.

    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)