private static void CreateWorkerFolder(string testDir, TestLanguageWorkerConfig workerConfig) { string workerPath = Path.Combine(testDir, workerConfig.Language); Directory.CreateDirectory(workerPath); File.WriteAllText(Path.Combine(workerPath, LanguageWorkerConstants.WorkerConfigFileName), workerConfig.Json); }
private static void CreateWorkerFolder(string testDir, TestLanguageWorkerConfig workerConfig, bool createTestWorker = true) { string workerPath = Path.Combine(testDir, workerConfig.Language); Directory.CreateDirectory(workerPath); File.WriteAllText(Path.Combine(workerPath, LanguageWorkerConstants.WorkerConfigFileName), workerConfig.Json); if (createTestWorker) { Directory.CreateDirectory(Path.Combine(workerPath, $"{testWorkerPathInWorkerConfig}")); File.WriteAllText(Path.Combine(workerPath, $"{testWorkerPathInWorkerConfig}.{workerConfig.Language}"), "test worker"); } }