Class IgnoreGraphicsTestData
A class that holds data about ignoring test cases.
Implements
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
[Serializable]
public record IgnoreGraphicsTestData : IEquatable<IgnoreGraphicsTestData>
Constructors
IgnoreGraphicsTestData(string, string, bool, bool, IgnoreGraphicsTestMode, List<Enum>)
Creates an instance of IgnoreGraphicsTestData.
Declaration
public IgnoreGraphicsTestData(string pattern, string reason, bool inclusive, bool allowOverride, IgnoreGraphicsTestMode matchMode, List<Enum> data)
Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern | The pattern to match against the test case name. |
| string | reason | The reason for ignoring the test case. |
| bool | inclusive | Whether to include or exclude the test case based on the pattern. |
| bool | allowOverride | Whether to allow overriding the ignore attribute through the command line. Set to false the test could never succeed if not ignored (for example, if the platform is incompatible). |
| IgnoreGraphicsTestMode | matchMode | The mode to use for matching the pattern against the test case name. |
| List<Enum> | data | The list of enums to use for generating the matching nodes for this ignore data. |
Fields
allowOverride
Whether to allow this Ignore to be overriden through the settings
Declaration
public bool allowOverride
Field Value
| Type | Description |
|---|---|
| bool |
inclusive
Whether the ignore data is to be applied inclusively or exclusively.
Declaration
public bool inclusive
Field Value
| Type | Description |
|---|---|
| bool |
Remarks
Exclusive ignore data excludes the matching nodes and so runs on all but the declared platform combinations. Inclusive ignore data includes the matching test cases and so run on only the declared platform combinations.
matchMode
The match mode for this ignore data. This affects how the pattern is matched against test names.
Declaration
public IgnoreGraphicsTestMode matchMode
Field Value
| Type | Description |
|---|---|
| IgnoreGraphicsTestMode |
pattern
The pattern to match against test cases.
Declaration
public string pattern
Field Value
| Type | Description |
|---|---|
| string |
reason
The reason the test is ignored.
Declaration
public string reason
Field Value
| Type | Description |
|---|---|
| string |
Properties
m_Platforms
The nodes this ignore will match against. These nodes and any subset of them will be a match.
Declaration
public GraphicsTestPlatform[] m_Platforms { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicsTestPlatform[] |