暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CleanupTestControllerTask.cs 638B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections;
  3. using UnityEngine.TestTools.TestRunner;
  4. namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
  5. {
  6. internal class CleanupTestControllerTask : TestTaskBase
  7. {
  8. public CleanupTestControllerTask()
  9. {
  10. RunOnCancel = true;
  11. RunOnError = ErrorRunMode.RunAlways;
  12. }
  13. public override IEnumerator Execute(TestJobData testJobData)
  14. {
  15. if (testJobData.PlaymodeTestsController == null)
  16. {
  17. yield break;
  18. }
  19. testJobData.PlaymodeTestsController.Cleanup();
  20. }
  21. }
  22. }