Esempio n. 1
0
        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)));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public DirectoryManager(ArgsProcessor argProc)
        {
            _argProc = argProc;

            imagesDirPath = argProc.GetArg(ArgsProcessor.Args.IMAGES_DIR_PATH);
        }