Class GraphicsTestBuildManager
Abstract class for managing the building of graphics tests.
Inherited Members
Namespace: UnityEditor.TestTools.Graphics.Builder
Assembly: UnityEditor.TestTools.Graphics.dll
Syntax
public abstract class GraphicsTestBuildManager
Properties
TestMode
The TestMode for the graphics test build.
Declaration
public abstract TestMode TestMode { get; protected set; }
Property Value
| Type | Description |
|---|---|
| TestMode |
Methods
Build(GraphicsTestBuildSettings, IEnumerable<GraphicsTestPlatform>, IList<GraphicsTestCase>)
Build the graphics tests using this BuildManager.
Declaration
public abstract GraphicsTestBuildResult Build(GraphicsTestBuildSettings settings, IEnumerable<GraphicsTestPlatform> platforms, IList<GraphicsTestCase> graphicsTestCases)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsTestBuildSettings | settings | The settings to use for the build. |
| IEnumerable<GraphicsTestPlatform> | platforms | The nodes to build for. |
| IList<GraphicsTestCase> | graphicsTestCases | The graphics test cases to build. |
Returns
| Type | Description |
|---|---|
| GraphicsTestBuildResult | The result of the build. |
CleanUp(GraphicsTestBuildSettings)
Clean up the build for the graphics tests.
Declaration
public void CleanUp(GraphicsTestBuildSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsTestBuildSettings | settings | The settings to use for cleaning up the graphics tests. |
Remarks
This method is called after the build is complete to clean up any temporary files or directories.
FromContext(TestMode, RuntimePlatform)
Creates a new instance of the graphics test build manager based on the specified context.
Declaration
public static GraphicsTestBuildManager FromContext(TestMode testMode, RuntimePlatform platform)
Parameters
| Type | Name | Description |
|---|---|---|
| TestMode | testMode | The context to use for creating the build manager. |
| RuntimePlatform | platform | The platform to build for. |
Returns
| Type | Description |
|---|---|
| GraphicsTestBuildManager | A new instance of the graphics test build manager for the specified context. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the context is unknown. |