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

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