private void CompleteTestRun() { EditorApplication.update -= TestConsumer; TestLauncherBase.ExecutePostBuildCleanupMethods(this.GetLoadedTests(), this.GetFilter(), Application.platform); m_CleanupVerifier.VerifyNoNewFilesAdded(); m_RunFinishedEvent.Invoke(m_Runner.Result); if (m_ConstructDelegator != null) { m_ConstructDelegator.DestroyCurrentTestObjectIfExists(); } Dispose(); UnityWorkItemDataHolder.alreadyExecutedTests = null; }
public IEnumerator TestRunnerCoroutine() { while (m_TestSteps.MoveNext()) { yield return(m_TestSteps.Current); } if (m_Runner.IsTestComplete) { runFinishedEvent.Invoke(m_Runner.Result); Cleanup(); yield return(null); } }