{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Interface ITestResultAdaptor | Test Framework | 2.0.1-exp.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITestResultAdaptor

    The ITestResultAdaptor�is the representation of the test results for a node in the test tree implemented as a wrapper around the NUnit ITest interface.

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

    Properties

    Name Description
    AssertCount

    The number of asserts executed when running the test and all its children.

    Children

    Gets the the collection of child results.

    Duration

    Gets the elapsed time for running the test in seconds

    EndTime

    Gets or sets the time the test finished running.

    FailCount

    The number of test cases that failed when running the test and all its children.

    FullName

    Gets the full name of the test result

    HasChildren

    Accessing HasChildren should not force creation of the Children collection in classes implementing this interface.

    InconclusiveCount

    The number of test cases that were inconclusive when running the test and all its children.

    Message

    The message associated with a test failure or with not running the test

    Name

    The name of the test node.

    Output

    Gets any text output written to this result.

    PassCount

    The number of test cases that passed when running the test and all its children.

    ResultState

    Gets the state of the result as a string.

    SkipCount

    The number of test cases that were skipped when running the test and all its children.

    StackTrace

    Any stacktrace associated with an error or failure. Not available in the Compact Framework 1.0.

    StartTime

    Gets or sets the time the test started running.

    Test

    The test details of the test result tree node as a TestAdaptor

    TestStatus

    Gets the status of the test as an enum.

    Methods

    Name Description
    ToXml()

    Use this to save the results to an XML file

    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)