Files
SHOUTING_PIRATE f5928e04c4 intial commit
2025-07-21 17:10:16 +01:00

23 lines
691 B
C#

using System.Collections;
using UnityEditor.TestRunner.TestLaunchers;
using UnityEditor.TestTools.TestRunner.TestRun.Tasks;
namespace UnityEditor.TestTools.TestRunner.TestRun
{
internal class WaitForPlayerRunTask : TestTaskBase
{
public override IEnumerator Execute(TestJobData testJobData)
{
var playerBuildOptions = testJobData.GetCurrentBuildOptions();
if ((playerBuildOptions & BuildOptions.AutoRunPlayer) != BuildOptions.AutoRunPlayer)
{
yield break;
}
while (RemoteTestRunController.instance.isRunning)
{
yield return null;
}
}
}
}