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); }
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); }
public PytestTestExecutor() { _app = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable); }
public TestExecutor() { _app = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable); _container = InterpreterCatalog.CreateContainer(typeof(IInterpreterRegistryService), typeof(IInterpreterOptionsService), typeof(TestExecutorProjectContext)); _interpreterService = _container.GetExportedValue <IInterpreterOptionsService>(); }
private static CompositionContainer CreateCompositionContainer() { var app = VisualStudioProxy.FromEnvironmentVariable(PythonConstants.PythonToolsProcessIdEnvironmentVariable); return(InterpreterCatalog.CreateContainer(typeof(IInterpreterRegistryService), typeof(IInterpreterOptionsService), typeof(TestDiscoverer))); }