Interface ICallbacks
Callbacks in the TestRunnerApi for the test stages when running tests.
Namespace: UnityEditor.TestTools.TestRunner.Api
Assembly: UnityEditor.TestRunner.dll
Syntax
public interface ICallbacks
Methods
RunFinished(ITestResultAdaptor)
A callback invoked when a test run is finished.
Declaration
void RunFinished(ITestResultAdaptor result)
Parameters
Type | Name | Description |
---|---|---|
ITestResultAdaptor | result | The result of the test run. |
RunStarted(ITestAdaptor)
A callback invoked when a test run is started.
Declaration
void RunStarted(ITestAdaptor testsToRun)
Parameters
Type | Name | Description |
---|---|---|
ITestAdaptor | testsToRun | The full loaded test tree. |
TestFinished(ITestResultAdaptor)
A callback invoked when each individual node of the test tree has finished executing.
Declaration
void TestFinished(ITestResultAdaptor result)
Parameters
Type | Name | Description |
---|---|---|
ITestResultAdaptor | result | The result of the test tree node after it had been executed. |
TestStarted(ITestAdaptor)
A callback invoked when each individual node of the test tree has started executing.
Declaration
void TestStarted(ITestAdaptor test)
Parameters
Type | Name | Description |
---|---|---|
ITestAdaptor | test | The test node currently executed. |