Ejemplo n.º 1
0
 public PythonTestRunner(PythonTestRunnerContext context)
     : base(context)
 {
     this.options = context.Options;
     this.pythonStandardLibraryPath = context.PythonStandardLibraryPath;
     this.fileService = context.ScriptingFileService;
 }
Ejemplo n.º 2
0
		public PythonTestRunner(PythonTestRunnerContext context)
			: base(context)
		{
			this.options = context.Options;
			this.pythonStandardLibraryPath = context.PythonStandardLibraryPath;
			this.fileService = context.ScriptingFileService;
		}
		public void SetUp()
		{
			properties = new Properties();
			options = new PythonAddInOptions(properties);
			options.PythonFileName = @"C:\Python\ipy.exe";
			options.PythonLibraryPath = @"C:\Python26\lib";
			optionsPanel = new PythonOptionsPanel(options);
			optionsPanel.LoadPanelContents();
			fileNameTextBox = (TextBox)optionsPanel.ControlDictionary["pythonFileNameTextBox"];
			pythonLibraryPathTextBox = (TextBox)optionsPanel.ControlDictionary["pythonLibraryPathTextBox"];
		}
 public PythonTestRunnerApplication(string testResultsFileName,
                                    PythonAddInOptions options,
                                    PythonStandardLibraryPath pythonStandardLibraryPath,
                                    IScriptingFileService fileService)
 {
     this.testResultsFileName       = testResultsFileName;
     this.options                   = options;
     this.pythonStandardLibraryPath = pythonStandardLibraryPath;
     this.fileService               = fileService;
     consoleApplication             = new PythonConsoleApplication(options);
 }
		public PythonTestRunnerApplication(string testResultsFileName,
			PythonAddInOptions options,
			PythonStandardLibraryPath pythonStandardLibraryPath,
			IScriptingFileService fileService)
		{
			this.testResultsFileName = testResultsFileName;
			this.options = options;
			this.pythonStandardLibraryPath = pythonStandardLibraryPath;
			this.fileService = fileService;
			consoleApplication = new PythonConsoleApplication(options);
		}
		void CreateTestDebugger()
		{
			debuggerService = new MockDebuggerService();
			debugger = debuggerService.MockDebugger;
			messageService = new MockMessageService();
			testResultsMonitor = new MockTestResultsMonitor();
			options = new PythonAddInOptions(new Properties());
			options.PythonFileName = @"c:\ironpython\ipy.exe";
			standardLibraryPath = new PythonStandardLibraryPath(@"c:\python\lib");
			fileService = new MockScriptingFileService();
			testDebugger = new PythonTestDebugger(debuggerService, messageService, testResultsMonitor, options, standardLibraryPath, fileService);
		}
Ejemplo n.º 7
0
 public PythonTestDebugger(IUnitTestDebuggerService debuggerService,
                           IUnitTestMessageService messageService,
                           ITestResultsMonitor testResultsMonitor,
                           PythonAddInOptions options,
                           PythonStandardLibraryPath pythonStandardLibraryPath,
                           IScriptingFileService fileService)
     : base(debuggerService, messageService, testResultsMonitor)
 {
     this.options = options;
     this.pythonStandardLibraryPath = pythonStandardLibraryPath;
     this.fileService = fileService;
 }
		public PythonTestRunnerContext(IUnitTestProcessRunner processRunner,
			ITestResultsMonitor testResultsMonitor,
			IUnitTestMessageService messageService,
			PythonAddInOptions options,
			PythonStandardLibraryPath pythonStandardLibraryPath,
			IScriptingFileService fileService)
			: base(processRunner, testResultsMonitor, fileService, messageService)
		{
			this.options = options;
			this.pythonStandardLibraryPath = pythonStandardLibraryPath;
			this.fileService = fileService;
		}
Ejemplo n.º 9
0
		public void Init()
		{
			MockWorkbench workbench = MockWorkbench.CreateWorkbenchWithOneViewContent(@"C:\Projects\test.py");

			Properties p = new Properties();
			PythonAddInOptions options = new PythonAddInOptions(p);
			options.PythonFileName = @"C:\IronPython\ipy.exe";
		
			debugger = new MockDebugger();
			command = new RunPythonCommand(workbench, options, debugger);
			command.Run();
		}
 public PythonTestRunnerContext(IUnitTestProcessRunner processRunner,
                                ITestResultsMonitor testResultsMonitor,
                                IUnitTestMessageService messageService,
                                PythonAddInOptions options,
                                PythonStandardLibraryPath pythonStandardLibraryPath,
                                IScriptingFileService fileService)
     : base(processRunner, testResultsMonitor, fileService, messageService)
 {
     this.options = options;
     this.pythonStandardLibraryPath = pythonStandardLibraryPath;
     this.fileService = fileService;
 }
Ejemplo n.º 11
0
		public PythonTestDebugger(IUnitTestDebuggerService debuggerService,
			IUnitTestMessageService messageService,
			ITestResultsMonitor testResultsMonitor,
			PythonAddInOptions options,
			PythonStandardLibraryPath pythonStandardLibraryPath,
			IScriptingFileService fileService)
			: base(debuggerService, messageService, testResultsMonitor)
		{
			this.options = options;
			this.pythonStandardLibraryPath = pythonStandardLibraryPath;
			this.fileService = fileService;
		}
		void CreateTestRunner()
		{
			processRunner = new MockProcessRunner();
			testResultsMonitor = new MockTestResultsMonitor();
			options = new PythonAddInOptions(new Properties());
			options.PythonFileName = @"c:\ironpython\ipy.exe";
			fileService = new MockScriptingFileService();
			messageService = new MockMessageService();
			standardLibraryPath = new PythonStandardLibraryPath(@"c:\python\lib");
			PythonTestRunnerContext context = new PythonTestRunnerContext(processRunner, 
				testResultsMonitor, 
				messageService,
				options,
				standardLibraryPath,
				fileService);
			
			testRunner = new PythonTestRunner(context);
		}
Ejemplo n.º 13
0
 public RunDebugPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger)
     : base(workbench, options, debugger)
 {
     Debug = true;
 }
Ejemplo n.º 14
0
		public PythonOptionsPanel(PythonAddInOptions options)
		{
			this.options = options;
		}
		public void Init()
		{
			options = new PythonAddInOptions(new Properties());
			options.PythonFileName = @"C:\IronPython\ipy.exe";
			app = new PythonConsoleApplication(options);
		}
Ejemplo n.º 16
0
 public RunPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger)
     : base(workbench, debugger, new PythonConsoleApplication(options))
 {
 }
Ejemplo n.º 17
0
		public RunDebugPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger) 
			: base(workbench, options, debugger)
		{
			Debug = true;
		}
		public PythonConsoleApplication(PythonAddInOptions options)
		{
			this.options = options;
		}
Ejemplo n.º 19
0
 public PythonOptionsPanel(PythonAddInOptions options)
 {
     this.options = options;
 }
Ejemplo n.º 20
0
 public PythonConsoleApplication(PythonAddInOptions options)
 {
     this.options = options;
 }
		public void Init()
		{
			properties = new Properties();
			options = new PythonAddInOptions(properties);
		}
Ejemplo n.º 22
0
		public RunPythonCommand(IScriptingWorkbench workbench, PythonAddInOptions options, IDebugger debugger)
			: base(workbench, debugger, new PythonConsoleApplication(options))
		{
		}