No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }