Exemplo n.º 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();
		}
Exemplo n.º 3
0
 protected override void RunTests(UnitTestApplicationStartHelper helper)
 {
     TestRunnerCategory.AppendLine(helper.GetCommandLine());
     runner.Start(helper.UnitTestApplication, helper.GetArguments());
 }
Exemplo n.º 4
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;
				}
			}
		}
Exemplo n.º 5
0
		protected override void RunTests(UnitTestApplicationStartHelper helper)
		{
			TestRunnerCategory.AppendLine(helper.GetCommandLine());
			runner.Start(helper.UnitTestApplication, helper.GetArguments());
		}