Class RequirePlatformSupportAttribute
The RequirePlatformSupportAttribute attribute can be applied to test assemblies (affects every test in the assembly), fixtures (affects every test in the fixture), or to individual test methods. Tests under the scope of this attrbitue require Player build support for the specified platforms in order to run.
Namespace: UnityEditor.TestTools
Syntax
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
public class RequirePlatformSupportAttribute : NUnitAttribute, IApplyToTest
Constructors
RequirePlatformSupportAttribute(BuildTarget[])
Initializes and returns an instance of RequirePlatformSupportAttribute.
Declaration
public RequirePlatformSupportAttribute(params BuildTarget[] platforms)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildTarget[] | platforms | The BuildTarget platform to run the test on. |
Properties
platforms
The build target platform, see BuildTarget.
Declaration
public BuildTarget[] platforms { get; }
Property Value
| Type | Description |
|---|---|
| BuildTarget[] |