Esempio n. 1
0
        public static void RunWithArgs(ProjectRunnerArguments programArgs)
        {
            if (programArgs.OutputDirectory != null)
            {
                Paths.OutputDirectory = programArgs.OutputDirectory;
            }
            if (programArgs.InputDirectory != null)
            {
                Paths.InputDirectory = programArgs.InputDirectory;
            }
            Log4NetUtil.InitializeLoggers(programArgs.Debug);

            var runner = programArgs.TestSource.GetProjectRunner(programArgs);
            List <TestExecutionResults> results = runner.Run();

            if (programArgs.TestSource == ProjectRunnerType.TestProject)
            {
                CheckResults(results, programArgs as TestProjectRunnerArguments);
            }
        }