Class ExecutionSettings
A set of execution settings defining how to run tests, using the TestRunnerApi.
Implements
Inherited Members
Namespace: UnityEditor.TestTools.TestRunner.Api
Assembly: solution.dll
Syntax
[Serializable]
public class ExecutionSettings : ISerializationCallbackReceiver
Constructors
| Name | Description |
|---|---|
| ExecutionSettings(params Filter[]) | Creates an instance with a given set of filters, if any. |
Fields
| Name | Description |
|---|---|
| customRunnerName | |
| filters | A collection of Filter to execute tests on. |
| overloadTestRunSettings | An instance of ITestRunSettings to set up before running tests on a Player. |
| playerHeartbeatTimeout | The time, in seconds, the editor should wait for heartbeats after starting a test run on a player. This defaults to 10 minutes. |
| runSynchronously | Note that this is only supported for EditMode tests, and that tests which take multiple frames (i.e. [UnityTest] tests, or tests with [UnitySetUp] or [UnityTearDown] scaffolding) will be filtered out. |
Properties
| Name | Description |
|---|---|
| IsBuildOnly | |
| playerSavePath | |
| targetPlatform | The BuildTarget platform to run the test on. If set to null, then the Editor is the target for the tests. |
Methods
| Name | Description |
|---|---|
| OnAfterDeserialize() | Implement this method to receive a callback after Unity deserializes your object. |
| OnBeforeSerialize() | Implement this method to receive a callback before Unity serializes your object. |
| ToString() | Implementation of ToString() that builds a string composed of the execution settings. |