Beispiel #1
0
        static void Main(string[] args)
        {
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);

            // Parses the command line options to get the configuration.
            var configuration = new TesterCommandLineOptions(args).Parse();

            if (configuration.RunAsParallelBugFindingTask)
            {
                // Creates and runs a testing process.
                TestingProcess testingProcess = TestingProcess.Create(configuration);
                testingProcess.Start();
            }
            else
            {
                Output.WriteLine(". Testing " + configuration.AssemblyToBeAnalyzed);
                if (configuration.TestMethodName != "")
                {
                    Output.WriteLine("... Method {0}", configuration.TestMethodName);
                }

                // Creates and runs the testing process scheduler.
                TestingProcessScheduler.Create(configuration).Run();

                Output.WriteLine(". Done");
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);

            // Parses the command line options to get the configuration.
            var configuration = new TesterCommandLineOptions(args).
                                Parse() as DynamicAnalysisConfiguration;

            // Creates and starts a systematic testing process.
            SystematicTestingProcess.Create(configuration).Start();

            Output.PrintLine(". Done");
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);

            // Parses the command line options to get the configuration.
            var configuration = new TesterCommandLineOptions(args).Parse();

            if (configuration.ParallelBugFindingTasks == 1 ||
                configuration.TestingProcessId < 0)
            {
                IO.PrintLine(". Testing " + configuration.AssemblyToBeAnalyzed);
                if (configuration.TestMethodName != "")
                {
                    IO.PrintLine(". Method {0}", configuration.TestMethodName);
                }
            }

            if (configuration.ParallelBugFindingTasks == 1 ||
                configuration.TestingProcessId >= 0)
            {
                // Creates and runs a testing process.
                TestingProcess testingProcess = TestingProcess.Create(configuration);
                testingProcess.Start();
            }
            else
            {
                // Creates and runs the testing process scheduler, if there
                // are more than one user specified parallel tasks.
                TestingProcessScheduler.Create(configuration).Run();
            }

            if (configuration.ParallelBugFindingTasks == 1 ||
                configuration.TestingProcessId < 0)
            {
                IO.PrintLine(". Done");
            }
        }