Class PlayModeTestsAttribute
Marks an assembly as containing PlayMode tests. When present, the Unity Test Framework classifies the assembly as a PlayMode test assembly regardless of the assembly's EditorOnly compilation flag.
The MSBuild-based Unity compilation pipeline emits this attribute into assemblies whose
project sets <IsPlaymodeTest>true</IsPlaymodeTest>. Projects compiled
via the legacy asmdef pipeline continue to be classified by their includePlatforms
configuration and do not need this attribute.
Inherited Members
Namespace: UnityEngine.TestTools
Assembly: UnityEngine.TestRunner.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly)]
public class PlayModeTestsAttribute : Attribute