コード例 #1
0
        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();
            }
        }
コード例 #2
0
        public IntegrationTestsRunnerWindow()
        {
            title    = "Integration Tests Runner";
            renderer = new IntegrationTestRunnerRenderer(RunTests);

            EditorApplication.hierarchyWindowItemOnGUI += renderer.OnHierarchyWindowItemOnGui;
            renderer.InvalidateTestList();
        }
コード例 #3
0
		public IntegrationTestsRunnerWindow ()
		{
			title = "Integration Tests Runner";
			renderer = new IntegrationTestRunnerRenderer(RunTests);
			
			EditorApplication.hierarchyWindowItemOnGUI += renderer.OnHierarchyWindowItemOnGui;
			renderer.InvalidateTestList();
		}