private static IEnumerable <TestTaskBase> GetTaskList(ExecutionSettings settings) { if (settings == null) { yield break; } if (settings.EditModeIncluded() || (PlayerSettings.runPlayModeTestAsEditModeTest && settings.PlayModeInEditorIncluded())) { yield return(new SaveModiedSceneTask()); yield return(new RegisterFilesForCleanupVerificationTask()); yield return(new SaveUndoIndexTask()); yield return(new BuildTestTreeTask(TestPlatform.EditMode)); yield return(new PrebuildSetupTask()); yield return(new LegacyEditModeRunTask()); yield return(new PerformUndoTask()); yield return(new CleanupVerificationTask()); yield break; } if (settings.PlayModeInEditorIncluded() && !PlayerSettings.runPlayModeTestAsEditModeTest) { yield return(new SaveModiedSceneTask()); yield return(new LegacyPlayModeRunTask()); yield break; } if (settings.PlayerIncluded()) { yield return(new LegacyPlayerRunTask()); yield break; } }
private static IEnumerable <TestTaskBase> GetTaskList(ExecutionSettings settings) { if (settings == null) { yield break; } if (settings.EditModeIncluded() || (PlayerSettings.runPlayModeTestAsEditModeTest && settings.PlayModeInEditorIncluded())) { yield return(new JobStageTask("Setup")); yield return(new SaveModifiedSceneTask()); yield return(new RegisterFilesForCleanupVerificationTask()); yield return(new SaveUndoIndexTask()); yield return(new BuildTestTreeTask(TestPlatform.EditMode)); yield return(new PrebuildSetupTask()); yield return(new RemoveAdditionalUntitledSceneTask()); yield return(new ReloadModifiedScenesTask()); yield return(new SaveSceneSetupTask()); yield return(new CreateNewSceneTask()); yield return(new CreateEventsTask()); yield return(new RegisterCallbackDelegatorEventsTask()); yield return(new RegisterTestRunCallbackEventsTask()); yield return(new EnableTestOutLoggerTask()); yield return(new InitializeTestProgressTask()); yield return(new UpdateTestProgressTask()); yield return(new JobStageTask("Running tests")); yield return(new LegacyEditModeRunTask()); yield return(new JobStageTask("Cleanup")); yield return(new RestoreSceneSetupTask()); yield return(new PerformUndoTask()); yield return(new CleanupVerificationTask()); yield return(new UnlockReloadAssembliesTask()); yield return(new ClearProgressBarTask()); yield break; } if (settings.PlayModeInEditorIncluded() && !PlayerSettings.runPlayModeTestAsEditModeTest) { yield return(new SaveModifiedSceneTask()); yield return(new LegacyPlayModeRunTask()); yield break; } if (settings.PlayerIncluded()) { yield return(new LegacyPlayerRunTask()); yield break; } }