public void Update() { textDisplay.fontSize = Math.Min(Screen.height / 42, Screen.width / 75 + 10); if (suiteFinished || textDisplay == null) { return; } suiteFinished = suite.TickTestSuite(); summary = suite.GenerateSummary(); textDisplay.text = summary; if (suiteFinished) { textDisplay.text += "\nThe UUnitRunner gameobject was added to the scene for these tests. You must manually remove it from your scene."; if (suite.AllTestsPassed()) { Debug.Log(summary); } else { Debug.LogWarning(summary); } OnSuiteFinish(); } }
public void Update() { if (suiteFinished || textDisplay == null) { return; } suiteFinished = suite.TickTestSuite(); summary = suite.GenerateSummary(); textDisplay.text = summary; if (suiteFinished) { textDisplay.text += "\nThe UUnitRunner gameobject was added to the scene for these tests. You must manually remove it from your scene."; if (suite.AllTestsPassed()) { Debug.Log(summary); } else { Debug.LogWarning(summary); } if (postResultsToCloudscript) { PostTestResultsToCloudScript(suite.GetInternalReport()); } else { OnCloudScriptSubmit(null); } } }
public static string Tick() { if (SuiteFinished) { return(Summary); } SuiteFinished = _suite.TickTestSuite(); Summary = _suite.GenerateSummary(); AllTestsPassed = _suite.AllTestsPassed(); if (SuiteFinished) { OnSuiteFinish(); } return(Summary); }