Class ExecutionSettings
A set of execution settings defining how to run tests, using the Test
Inherited Members
Namespace: UnityEditor .TestTools .TestRunner .Api
Assembly: UnityEditor.TestRunner.dll
Syntax
[Serializable]
public class ExecutionSettings
Constructors
ExecutionSettings(params Filter[])
Creates an instance with a given set of filters, if any.
Declaration
public ExecutionSettings(params Filter[] filtersToExecute)
Parameters
Type | Name | Description |
---|---|---|
Filter[] | filtersToExecute | Set of filters |
Fields
filters
A collection of Filter to execute tests on.
Declaration
[SerializeField]
public Filter[] filters
Field Value
Type | Description |
---|---|
Filter[] |
overloadTestRunSettings
An instance of ITest
Declaration
public ITestRunSettings overloadTestRunSettings
Field Value
Type | Description |
---|---|
ITest |
playerHeartbeatTimeout
The time, in seconds, the editor should wait for heartbeats after starting a test run on a player. This defaults to 10 minutes.
Declaration
[SerializeField]
public int playerHeartbeatTimeout
Field Value
Type | Description |
---|---|
int |
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.
Declaration
[SerializeField]
public bool runSynchronously
Field Value
Type | Description |
---|---|
bool | If true, the call to Execute() will run tests synchronously, guaranteeing that all tests have finished running by the time the call returns. |
Methods
ToString()
Implementation of ToString() that builds a string composed of the execution settings.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The current execution settings as a string. |