public void SaveTestInfo(TestInfoData data) { var json = JObject.FromObject(data).ToString(); TestMetrics.CheckAndCreateFolder(); File.WriteAllText(TestMetrics.PathTo("tests.json"), json); }
private void Start() { Debug.Log("TestTools: PlayMode test runner starts"); DontDestroyOnLoad(gameObject); playModeLogger = new PlayModeLogger(); screenGUIDrawer = new PlayModeTestRunnerGUI(); logSaver = new LogSaver(Path.Combine(Application.persistentDataPath, LOG_FILE_NAME)); testInfoData = new TestInfoData(); StartProcessingTests(); }