예제 #1
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);
 }
예제 #2
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);
 }
예제 #3
0
        public void OnDestroy()
        {
            var test = currentTest;

            if (currentTest != null)
            {
                test.messages += "Test run interrupted (crash?)";
                LogMessage(interruptedMessage);
                FinishTest(TestResult.ResultType.Failed);
            }
            if (test != null || testToRunQueue.Any())
            {
                TestRunnerCallback.TestRunInterrupted(testToRunQueue.ToList());
            }
            Application.RegisterLogCallback(null);
        }
예제 #4
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;
 }