private void Start() { if (runTests) { NUnitLiteUnityRunner.RunTests(); } }
// Use this for initialization void Start() { ResultSummary result = NUnitLiteUnityRunner.RunTests(); if (result.FailureCount > 0) { renderer.material.color = Color.red; } else if (result.TestCount > 0) { renderer.material.color = new Color(0.13f, 0.63f, 0.13f, 1); } }
static void DoNunitTest() { var arguments = System.Environment.GetCommandLineArgs(); if (Application.isEditor) { arguments = new string[] { "nunitargs", "\"-out:nunit_out.txt -result:historyline-test-res.xml -format:nunit2 Assembly-CSharp\"" }; } Debug.Log("GetCommandLineArgs: " + String.Join(", ", arguments)); var nunitArgs = new string[] { "Assembly-CSharp", "/out:nunit_out.txt", "/result:historyline-test-res.xml" }; //find the nunit parameter for (int i = 0; i < arguments.Length; i++) { if (arguments[i].Contains("nunitargs")) { nunitArgs = arguments[i + 1].Replace("\"", "").Split(' '); Debug.Log("Nunit args Application.dataPathfound: " + String.Join(",", nunitArgs)); } } NUnitLiteUnityRunner.RunTests(nunitArgs); }
public static void RunAllTests() { NUnitLiteUnityRunner.RunTests(); }
public CSharpTestDriverSimple() { NUnitLiteUnityRunner.RunTests(); }
void OnMouseDown() { NUnitLiteUnityRunner.RunTests(); }
public void Run(bool failuesAreExceptions) { NUnitLiteUnityRunner.RunTests(failuesAreExceptions); }