internal string GetCombinedReportXmlPath() { var filename = GetCombinedReportFilenameWithoutExtension() + ".xml"; var reportDir = _argProc.GetArg(ArgsProcessor.Args.OUTPUT_FILE_PATH); reportDir = Path.GetDirectoryName(reportDir); return(Path.GetFullPath(Path.Combine(reportDir, filename))); }
private static List <TestDescription> ReadTests(ArgsProcessor argProc) { List <TestDescription> testsToRun; List <TestDescription> tests; { var reader = new TestConfigReader(); var path = argProc.GetArg(ArgsProcessor.Args.CSV_FILE_PATH); tests = reader.ReadFromFilePath(path); Outputter.Output(string.Format("Read {0} tests from Test Suite: {1}", tests.Count, path)); } testsToRun = TestDescription.GetTestsByName(tests, argProc.GetArg(ArgsProcessor.Args.TEST_NAME)); return(testsToRun); }
private static ReportSet CreateReport(ArgsProcessor argProc) { var reportSet = new ReportSet(); reportSet.OverallResult = CompareResult.Similar; reportSet.Created = DateTime.Now; reportSet.CsvFileName = Path.GetFileName(argProc.GetArg(ArgsProcessor.Args.CSV_FILE_PATH)); return(reportSet); }
public DirectoryManager(ArgsProcessor argProc) { _argProc = argProc; imagesDirPath = argProc.GetArg(ArgsProcessor.Args.IMAGES_DIR_PATH); }