public BaseliningSummary RunAll(string rootPath) { BaseliningSummary overallSummary = RunUnder(Path.Combine(rootPath, InputFolderName)); Directory.CreateDirectory(Path.Combine(rootPath, OutputFolderName)); using (StreamWriter writer = File.CreateText(Path.Combine(rootPath, OutputFolderName, SummaryFileName))) { overallSummary.Write(writer); } return(overallSummary); }
public BaseliningSummary RunAll(string rootPath) { // Clear prior output DeleteAndCreateDirectory(Path.Combine(rootPath, OutputFolderName)); DeleteAndCreateDirectory(Path.Combine(rootPath, OutputDebugFolderName)); // Run all series BaseliningSummary overallSummary = RunUnder(Path.Combine(rootPath, InputFolderName), InputFolderName); // Write overall summary using (StreamWriter writer = File.CreateText(Path.Combine(rootPath, OutputFolderName, SummaryFileName))) { overallSummary.Write(writer); } Console.WriteLine(overallSummary); // Write investigation and accept instructions Console.WriteLine(); Console.WriteLine($"REVIEW: windiff \"{Path.GetFullPath(Path.Combine(rootPath, BaseliningTester.ExpectedDebugFolderName))}\" \"{Path.GetFullPath(Path.Combine(rootPath, BaseliningTester.OutputDebugFolderName))}\""); Console.WriteLine($"ACCEPT: robocopy /MIR \"{Path.GetFullPath(Path.Combine(rootPath, BaseliningTester.OutputFolderName))}\" \"{Path.GetFullPath(Path.Combine(rootPath, BaseliningTester.ExpectedFolderName))}\""); return(overallSummary); }