コード例 #1
0
        private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            if (runContext.InIsolation)
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;

            var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

            launcher.TestProject.AddTestRunnerExtension(extension);
            launcher.Run();
        }
コード例 #2
0
        private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            if (runContext.InIsolation)
            {
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;
            }

            var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

            launcher.TestProject.AddTestRunnerExtension(extension);
            launcher.Run();
        }
コード例 #3
0
        private void RunTests(IRunContext runContext, IFrameworkHandle testExecutionRecorder)
        {
            try
            {
                Log(Environment.CurrentDirectory +  " " + runContext.SolutionDirectory + " " + runContext.TestRunDirectory);
                Log(Environment.Is64BitProcess + " " + LoaderManager.Loader.RuntimePath);
                // testExecutionRecorder.RecordEnd();
                //if (runContext.InIsolation)
                launcher.TestProject.TestRunnerFactoryName = StandardTestRunnerFactoryNames.IsolatedAppDomain;

                var extension = new VSTestWindowExtension(testExecutionRecorder, testCaseFactory, testResultFactory);

                launcher.TestProject.AddTestRunnerExtension(extension);
                launcher.Run();

            }
            catch (Exception e)
            {
               Log(e.ToString());
               throw;
            }
        }