Exemple #1
0
 public void OnDestroy()
 {
     if (currentTest != null)
     {
         var testResult = testToRun.Single(result => result.isRunning);
         testResult.messages += "Test run interrupted (crash?)";
         LogMessage(interruptedMessage);
         FinishTest(TestResult.ResultType.Failed);
     }
     if (currentTest != null || (testsProvider != null && testsProvider.AnyTestsLeft()))
     {
         var remainingTests = testsProvider.GetRemainingTests();
         TestRunnerCallback.TestRunInterrupted(testToRun.Where(t => remainingTests.Contains(t.TestComponent)).ToList());
     }
     Application.RegisterLogCallback(null);
 }
Exemple #2
0
 public void OnDestroy()
 {
     if (currentTest != null)
     {
         var testResult = m_ResultList.Single(result => result.TestComponent == currentTest);
         testResult.messages += "Test run interrupted (crash?)";
         LogMessage(k_InterruptedMessage);
         FinishTest(TestResult.ResultType.Failed);
     }
     if (currentTest != null || (m_TestsProvider != null && m_TestsProvider.AnyTestsLeft()))
     {
         var remainingTests = m_TestsProvider.GetRemainingTests();
         TestRunnerCallback.TestRunInterrupted(remainingTests.ToList());
     }
     Application.RegisterLogCallback(null);
 }
Exemple #3
0
 public void OnDestroy()
 {
     if (currentTest != null)
     {
         TestResult testResult = m_ResultList.Single((TestResult result) => result.TestComponent == currentTest);
         testResult.messages += "Test run interrupted (crash?)";
         LogMessage("IntegrationTest Run interrupted");
         FinishTest(TestResult.ResultType.Failed);
     }
     if (currentTest != null || (m_TestsProvider != null && m_TestsProvider.AnyTestsLeft()))
     {
         List <ITestComponent> remainingTests = m_TestsProvider.GetRemainingTests();
         TestRunnerCallback.TestRunInterrupted(remainingTests.ToList());
     }
     Application.logMessageReceived -= LogHandler;
 }