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 |