예제 #1
0
        public ExecutorService(PythonProjectSettings projectSettings, IFrameworkHandle frameworkHandle, IRunContext runContext)
        {
            _projectSettings = projectSettings;
            _frameworkHandle = frameworkHandle;
            _runContext      = runContext;
            _app             = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable);

            GetDebugSettings(_app, _runContext, _projectSettings, out _debugMode, out _debugSecret, out _debugPort);
        }
예제 #2
0
 internal ExecutorService(
     ITestConfiguration config,
     PythonProjectSettings projectSettings,
     IFrameworkHandle frameworkHandle,
     IRunContext runContext
     )
 {
     _testConfig      = config ?? throw new ArgumentNullException(nameof(config));
     _projectSettings = projectSettings ?? throw new ArgumentNullException(nameof(projectSettings));
     _frameworkHandle = frameworkHandle ?? throw new ArgumentNullException(nameof(frameworkHandle));
     _runContext      = runContext ?? throw new ArgumentNullException(nameof(runContext));;
     _app             = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable);
     GetDebugSettings(_app, _runContext, _projectSettings, out _debugMode, out _debugSecret, out _debugPort);
 }
예제 #3
0
 public PytestTestExecutor()
 {
     _app = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable);
 }
예제 #4
0
 public TestExecutor()
 {
     _app                = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable);
     _container          = InterpreterCatalog.CreateContainer(typeof(IInterpreterRegistryService), typeof(IInterpreterOptionsService), typeof(TestExecutorProjectContext));
     _interpreterService = _container.GetExportedValue <IInterpreterOptionsService>();
 }
예제 #5
0
        private static CompositionContainer CreateCompositionContainer()
        {
            var app = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable);

            return(InterpreterCatalog.CreateContainer(typeof(IInterpreterRegistryService), typeof(IInterpreterOptionsService), typeof(TestDiscoverer)));
        }