コード例 #1
0
        public void SaveTestInfo(TestInfoData data)
        {
            var json = JObject.FromObject(data).ToString();

            TestMetrics.CheckAndCreateFolder();
            File.WriteAllText(TestMetrics.PathTo("tests.json"), json);
        }
コード例 #2
0
        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();
        }