public void Update()
        {
            if (readyToRun && EditorApplication.isPlaying)
            {
                readyToRun = false;
                var testRunner = TestRunner.GetTestRunner();
                testRunner.TestRunnerCallback.Add(new RunnerCallback(this));
                testRunner.InitRunner(testsToRun);
                consoleErrorOnPauseValue = GetConsoleErrorPause();
                SetConsoleErrorPause(false);
                isRunning = true;

                if (renderer.blockUIWhenRunning)
                {
                    EditorUtility.DisplayProgressBar("Integration Test Runner",
                                                     "Initializing", 0);
                }
            }

            if (EditorApplication.isCompiling)
            {
                isCompiling = true;
            }
            else if (isCompiling)
            {
                isCompiling = false;
                renderer.InvalidateTestList();
                EditorApplication.RepaintHierarchyWindow();
            }
        }
        public IntegrationTestsRunnerWindow()
        {
            title    = "Integration Tests Runner";
            renderer = new IntegrationTestRunnerRenderer(RunTests);

            EditorApplication.hierarchyWindowItemOnGUI += renderer.OnHierarchyWindowItemOnGui;
            renderer.InvalidateTestList();
        }
		public IntegrationTestsRunnerWindow ()
		{
			title = "Integration Tests Runner";
			renderer = new IntegrationTestRunnerRenderer(RunTests);
			
			EditorApplication.hierarchyWindowItemOnGUI += renderer.OnHierarchyWindowItemOnGui;
			renderer.InvalidateTestList();
		}