{!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 ITestAdaptor | Test Framework | 2.0.1-exp.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITestAdaptor

    ITestAdaptor is a representation of 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 ITestAdaptor

    Properties

    Name Description
    Arguments

    The array of arguments that the test method/fixture will be invoked with.

    AssemblyType

    An enum flag that filters whether the assembly of the test is in an editor only assembly or if it is in an assembly that also supports one or more platforms.

    Categories

    An array of the categories applied to the test or fixture.

    ChildIndex

    The child index of the node in its parent.

    Children

    The child nodes.

    Description

    The description of the test.

    FullName

    The full name of the test. E.g., MyNamespace.MyTestClass.MyTest.

    HasChildren

    Whether the node has any children.

    Id

    The ID of the test tree node. The ID can change if you add new tests to the suite. Use UniqueName, if you want to have a more permanent point of reference.

    IsSuite

    True if the node is a test suite/fixture, false otherwise.

    IsTestAssembly

    Returns true if the node represents a test assembly, false otherwise.

    Method

    The Nunit IMethodInfo of the test method. If the node is not a test method, then the value is null.

    Name

    The name of the test. E.g.,MyTest.

    Parent

    The parent node, if any.

    ParentFullName

    The full name of the parent node.

    ParentId

    The ID of the parent node.

    ParentUniqueName

    A unique name of the parent node. E.g., Tests.dll/MyNamespace/[Tests][MyNamespace.MyTestClass][suite].

    RequiresPlayMode

    If the test explicitly requires playmode.

    RunState

    The run state of the test node. Either NotRunnable, Runnable, Explicit, Skipped, or Ignored.

    SkipReason

    The skip reason. E.g., if ignoring the test.

    TestCaseCount

    The total number of test cases in the node and all sub-nodes.

    TestCaseTimeout

    The test case timeout in milliseconds. Note that this value is only available on TestFinished.

    TestMode

    The mode of the test. Either Edit Mode or Play Mode.

    TypeInfo

    The type of test class as an NUnit ITypeInfo. If the node is not a test class, then the value is null.

    UniqueName

    A unique generated name for the test node. E.g., Tests.dll/MyNamespace/MyTestClass/[Tests][MyNamespace.MyTestClass.MyTest].

    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)