public void OnGUI() { if (isRunning) { Repaint(); if (!EditorApplication.isPlaying) { isRunning = false; Debug.Log("Test run was interrupted. Reseting Test Runner."); } } #if !UNITY_4_0 && !UNITY_4_0_1 && !UNITY_4_1 && !UNITY_4_2 if (BuildPipeline.isBuildingPlayer) { isBuilding = true; } else if (isBuilding) { isBuilding = false; renderer.InvalidateTestList(); Repaint(); } #endif renderer.PrintHeadPanel(isRunning); renderer.PrintTestList(); renderer.PrintSelectedTestDetails(); if (renderer.forceRepaint) { renderer.forceRepaint = false; Repaint(); } }
public void OnGUI() { if (isRunning) { Repaint(); if (!EditorApplication.isPlaying) { isRunning = false; Debug.Log("Test run was interrupted. Reseting Test Runner."); } } #if !UNITY_4_0 && !UNITY_4_0_1 && !UNITY_4_1 && !UNITY_4_2 if (BuildPipeline.isBuildingPlayer) { isBuilding = true; } else if (isBuilding) { isBuilding = false; renderer.InvalidateTestList(); Repaint(); } #endif if (!TestManager.AnyTestsOnScene()) { renderer.PrintHeadPanel(isRunning); GUILayout.Label("No tests found on the scene", EditorStyles.boldLabel); GUILayout.FlexibleSpace(); } else { renderer.PrintHeadPanel(isRunning); renderer.PrintTestList(); renderer.PrintSelectedTestDetails(); } if (renderer.forceRepaint) { renderer.forceRepaint = false; Repaint(); } }