bea2dce063
test
26 lines
775 B
C#
26 lines
775 B
C#
using System.Collections;
|
|
using System.Linq;
|
|
using UnityEngine.TestTools.TestRunner;
|
|
|
|
namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
|
|
{
|
|
internal class LegacyPlayModeRunTask : TestTaskBase
|
|
{
|
|
public LegacyPlayModeRunTask() : base(true)
|
|
{
|
|
|
|
}
|
|
public override IEnumerator Execute(TestJobData testJobData)
|
|
{
|
|
var settings = PlaymodeTestsControllerSettings.CreateRunnerSettings(testJobData.executionSettings.filters.Select(filter => filter.ToTestRunnerFilter()).ToArray());
|
|
var launcher = new PlaymodeLauncher(settings);
|
|
|
|
launcher.Run();
|
|
|
|
while (PlaymodeLauncher.IsRunning)
|
|
{
|
|
yield return null;
|
|
}
|
|
}
|
|
}
|
|
} |