Пример #1
0
        protected override void RunTests(UnitTestApplicationStartHelper helper)
        {
            bool running = false;

            try {
                TestRunnerCategory.AppendLine(helper.GetCommandLine());
                ProcessStartInfo startInfo = new ProcessStartInfo(helper.UnitTestApplication);
                startInfo.Arguments           = helper.GetArguments();
                startInfo.WorkingDirectory    = UnitTestApplicationStartHelper.UnitTestApplicationDirectory;
                DebuggerService.DebugStopped += DebuggerFinished;
                DebuggerService.CurrentDebugger.Start(startInfo);
                running = true;
            } finally {
                if (!running)
                {
                    DebuggerService.DebugStopped -= DebuggerFinished;
                }
            }
        }
        protected override void RunTests(UnitTestApplicationStartHelper helper)
        {
            TestRunnerCategory.AppendLine(helper.GetCommandLine());

            ProcessStartInfo startInfo = new ProcessStartInfo(helper.UnitTestApplication);

            string path = helper.Project.GetSessionFileName();

            startInfo.Arguments        = helper.GetArguments();
            startInfo.WorkingDirectory = UnitTestApplicationStartHelper.UnitTestApplicationDirectory;
            LoggingService.Info("starting profiler...");

            runner = new ProfilerRunner(startInfo, true, new ProfilingDataSQLiteWriter(path, true, GetUnitTestNames(helper).ToArray()));

            runner.RunFinished += delegate {
                WorkbenchSingleton.SafeThreadCall(() => FileService.OpenFile(path));
                AfterFinish(helper, path);
            };

            runner.Run();
        }
Пример #3
0
 void OutputLineReceived(object source, LineReceivedEventArgs e)
 {
     TestRunnerCategory.AppendLine(e.Line);
 }
Пример #4
0
 protected override void RunTests(UnitTestApplicationStartHelper helper)
 {
     TestRunnerCategory.AppendLine(helper.GetCommandLine());
     runner.Start(helper.UnitTestApplication, helper.GetArguments());
 }