public void RunFinished()
            {
                var resultWriter = new XmlResultWriter("UnitTestResults.xml");

                resultWriter.SaveTestResult("Unit Tests", unitTestView.testList.ToArray());
                EditorUtility.ClearProgressBar();
            }
Exemplo n.º 2
0
        private void WriteResultsToFile()
        {
            var path = System.IO.Path.Combine(Application.dataPath,
                                              Application.loadedLevelName + "-TestResults.xml");
            var resultWriter = new XmlResultWriter(Application.loadedLevelName, path);

            resultWriter.SaveTestResult(testToRun.ToArray());
        }
Exemplo n.º 3
0
            public void RunFinished()
            {
                var resultWriter = new XmlResultWriter(EditorApplication.currentScene,
                                                       "UnitTestResults.xml");

                resultWriter.SaveTestResult(unitTestView.testList.ToArray());
                EditorUtility.ClearProgressBar();
            }
Exemplo n.º 4
0
        private void WriteResultsToFile()
        {
            string path = Path.Combine(Application.dataPath, Application.loadedLevelName + "-TestResults.xml");

            Debug.Log("Saving results in " + path);
            var resultWriter = new XmlResultWriter(path);

            resultWriter.SaveTestResult(Application.loadedLevelName, testToRun.ToArray());
        }