public void Update() { if (suiteFinished || textDisplay == null) { return; } suiteFinished = suite.TickTestSuite(); summary = suite.GenerateTestSummary(); textDisplay.text = summary; textDisplay.resizeTextForBestFit = true; if (suiteFinished) { textDisplay.text += "\nThe UUnitRunner gameobject was added to the scene for these tests. You must manually remove it from your scene."; textDisplay.resizeTextForBestFit = true; if (suite.AllTestsPassed()) { Debug.Log(summary); } else { Debug.LogWarning(summary); } OnSuiteFinish(); } }
public void Update() { var linecount = string.IsNullOrEmpty(summary) ? 1000 : summary.Count(f => f == '\n') * 100 / 60; textDisplay.fontSize = Math.Min(Screen.height / linecount - 3, Screen.width / 75 + 10); if (suiteFinished || textDisplay == null) { return; } suiteFinished = suite.TickTestSuite(); summary = suite.GenerateTestSummary(); 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() { 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 async Task <string> Tick() { if (SuiteFinished) { return(Summary); } SuiteFinished = _suite.TickTestSuite(); Summary = _suite.GenerateTestSummary(); AllTestsPassed = _suite.AllTestsPassed(); if (SuiteFinished) { await OnSuiteFinish(); } return(Summary); }
public static string Tick() { if (SuiteFinished) { return(Summary); } SuiteFinished = _suite.TickTestSuite(); Summary = _suite.GenerateSummary(); AllTestsPassed = _suite.AllTestsPassed(); if (SuiteFinished) { OnSuiteFinish(); } return(Summary); }