private static void ResumeRunningJobs() { try { foreach (var testRun in instance.TestRuns.ToArray()) { if (testRun.isRunning) { var runner = new TestJobRunner(); runner.RunJob(testRun); instance.m_Runners[testRun.guid] = runner; } else { instance.TestRuns.Remove(testRun); } } } catch (Exception ex) { Debug.LogException(ex); EditorUtility.ClearProgressBar(); EditorApplication.UnlockReloadAssemblies(); instance.TestRuns.Clear(); } }
private static void ResumeRunningJobs() { foreach (var testRun in instance.TestRuns.ToArray()) { if (testRun.isRunning) { var runner = new TestJobRunner(); runner.RunJob(testRun); } else { instance.TestRuns.Remove(testRun); } } }