Class PostBuildCleanupWithTestDataAttribute
PostBuildCleanupWithTestData attributes run if the respective test or test class is in the current test run. The test is included either by running all tests or setting a filter that includes the test. If multiple tests reference the same pre-built setup or post-build cleanup, then it only runs once.
Inherited Members
Namespace: UnityEngine.TestTools
Assembly: UnityEngine.TestRunner.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method)]
public class PostBuildCleanupWithTestDataAttribute : Attribute
Constructors
PostBuildCleanupWithTestDataAttribute(string)
Initializes and returns an instance of PostBuildCleanupWithTestDataAttribute by class name.
Declaration
public PostBuildCleanupWithTestDataAttribute(string targetClassName)
Parameters
Type | Name | Description |
---|---|---|
string | targetClassName | The name of the target class. |
PostBuildCleanupWithTestDataAttribute(Type)
Initializes and returns an instance of PostBuildCleanupWithTestDataAttribute by type.
Declaration
public PostBuildCleanupWithTestDataAttribute(Type targetClass)
Parameters
Type | Name | Description |
---|---|---|
Type | targetClass | The type of the target class. |