Class ExecutionSettings
A set of execution settings defining how to run tests, using the TestRunnerApi.
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 ITestRunSettings to set up before running tests on a Player.
Declaration
public ITestRunSettings overloadTestRunSettings
Field Value
Type | Description |
---|---|
ITestRunSettings |
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. |