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., |
| 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., |
| 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., |
| RequiresPlayMode | If the test explicitly requires playmode. |
| RunState | The run state of the test node. Either |
| 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 |
| UniqueName | A unique generated name for the test node. E.g., |