public void SetUpFixture()
        {
            AddInPathHelper helper = new AddInPathHelper("PythonBinding");

            addin          = helper.CreateDummyAddInInsideAddInTree();
            addin.FileName = @"C:\Projects\SD\AddIns\Python\pythonbinding.addin";
        }
        public void CommandLineArgumentHasSharpDevelopTestPythonScriptAndResponseFileName()
        {
            AddInPathHelper helper = new AddInPathHelper("PythonBinding");
            AddIn           addin  = helper.CreateDummyAddInInsideAddInTree();

            addin.FileName = @"c:\sharpdevelop\addins\pythonbinding\pythonbinding.addin";

            RunTestsOnSelectedTestMethod();

            string expectedCommandLine =
                "\"c:\\sharpdevelop\\addins\\pythonbinding\\TestRunner\\sdtest.py\" " +
                "\"@d:\\temp\\tmp66.tmp\"";

            Assert.AreEqual(expectedCommandLine, processRunner.CommandArgumentsPassedToStartMethod);
        }
		public void Init()
		{
			string tempFileName = "temp.tmp";
			MockScriptingFileService fileService = new MockScriptingFileService();
			fileService.SetTempFileName(tempFileName);
			fileService.SetTextWriter(new StringWriter());

			Properties properties = new Properties();
			options = new RubyAddInOptions(properties);

			AddInPathHelper helper = new AddInPathHelper("RubyBinding");
			AddIn addin = helper.CreateDummyAddInInsideAddInTree();
			addin.FileName = @"c:\rubybinding\rubybinding.addin";

			string testResultsFileName = "results.txt";
			testRunner = new RubyTestRunnerApplication(testResultsFileName, options, fileService);
		}
예제 #4
0
        public void CreateProcessInfoReturnsFixedTestRunnerFilePath()
        {
            AddInPathHelper helper = new AddInPathHelper("RubyBinding");
            AddIn           addin  = helper.CreateDummyAddInInsideAddInTree();

            addin.FileName = @"c:\rubybinding\bin\..\AddIns\rubybinding.addin";

            MockCSharpProject project          = new MockCSharpProject();
            SelectedTests     selectedTests    = RubySelectedTestsHelper.CreateSelectedTests(project);
            ProcessStartInfo  processStartInfo = GetProcessStartInfoFromTestRunnerApp(selectedTests);

            string expectedCommandLine =
                "--disable-gems " +
                "\"-Ic:\\rubybinding\\AddIns\\TestRunner\" " +
                "\"c:\\rubybinding\\AddIns\\TestRunner\\sdtest.rb\" " +
                "-- " +
                "\"results.txt\" " +
                "\"temp.tmp\"";

            Assert.AreEqual(expectedCommandLine, processStartInfo.Arguments);
        }
예제 #5
0
        public void Init()
        {
            string tempFileName = "temp.tmp";
            MockScriptingFileService fileService = new MockScriptingFileService();

            fileService.SetTempFileName(tempFileName);
            fileService.SetTextWriter(new StringWriter());

            Properties properties = new Properties();

            options = new RubyAddInOptions(properties);

            AddInPathHelper helper = new AddInPathHelper("RubyBinding");
            AddIn           addin  = helper.CreateDummyAddInInsideAddInTree();

            addin.FileName = @"c:\rubybinding\rubybinding.addin";

            string testResultsFileName = "results.txt";

            testRunner = new RubyTestRunnerApplication(testResultsFileName, options, fileService);
        }
        public void CommandLineArgumentHasSharpDevelopTestRubyScriptFileNameAndTestResultsFileNameAndResponseFileName()
        {
            AddInPathHelper helper = new AddInPathHelper("RubyBinding");
            AddIn           addin  = helper.CreateDummyAddInInsideAddInTree();

            addin.FileName = @"c:\sharpdevelop\addins\rubybinding\rubybinding.addin";

            testResultsMonitor.FileName = @"d:\testresults.txt";
            RunTestsOnSelectedTestMethod();

            string expectedCommandLine =
                "--disable-gems " +
                "\"-Ic:\\sharpdevelop\\addins\\rubybinding\\TestRunner\" " +
                "\"c:\\sharpdevelop\\addins\\rubybinding\\TestRunner\\sdtest.rb\" " +
                "--name=MyTestMethod " +
                "-- " +
                "\"d:\\testresults.txt\" " +
                "\"d:\\temp\\tmp66.tmp\"";

            Assert.AreEqual(expectedCommandLine, processRunner.CommandArgumentsPassedToStartMethod);
        }
		public void SetUpFixture()
		{
			AddInPathHelper helper = new AddInPathHelper("PythonBinding");
			addin = helper.CreateDummyAddInInsideAddInTree();
			addin.FileName = @"C:\Projects\SD\AddIns\Python\pythonbinding.addin";
		}
		public void CommandLineArgumentHasSharpDevelopTestPythonScriptAndResponseFileName()
		{
			AddInPathHelper helper = new AddInPathHelper("PythonBinding");
			AddIn addin = helper.CreateDummyAddInInsideAddInTree();
			addin.FileName = @"c:\sharpdevelop\addins\pythonbinding\pythonbinding.addin";
			
			RunTestsOnSelectedTestMethod();
			
			string expectedCommandLine =
				"\"c:\\sharpdevelop\\addins\\pythonbinding\\TestRunner\\sdtest.py\" " +
				"\"@d:\\temp\\tmp66.tmp\"";
			
			Assert.AreEqual(expectedCommandLine, processRunner.CommandArgumentsPassedToStartMethod);
		}
		public void CommandLineArgumentHasSharpDevelopTestRubyScriptFileNameAndTestResultsFileNameResponseFileName()
		{
			AddInPathHelper helper = new AddInPathHelper("RubyBinding");
			AddIn addin = helper.CreateDummyAddInInsideAddInTree();
			addin.FileName = @"c:\sharpdevelop\addins\rubybinding\rubybinding.addin";
				
			testResultsMonitor.FileName = @"d:\testresults.txt";
			RunTestsOnSelectedTestMethod();
			
			string expectedCommandLine =
				"--disable-gems " +
				"-D " +
				"\"-Ic:\\sharpdevelop\\addins\\rubybinding\\TestRunner\" " +
				"\"c:\\sharpdevelop\\addins\\rubybinding\\TestRunner\\sdtest.rb\" " +
				"--name=MyTestMethod " +
				"-- " +
				"\"d:\\testresults.txt\" " +
				"\"d:\\temp\\tmp66.tmp\"";
			
			Assert.AreEqual(expectedCommandLine, debugger.ProcessStartInfo.Arguments);
		}
		public void CreateProcessInfoReturnsFixedTestRunnerFilePath()
		{
			AddInPathHelper helper = new AddInPathHelper("RubyBinding");
			AddIn addin = helper.CreateDummyAddInInsideAddInTree();
			addin.FileName = @"c:\rubybinding\bin\..\AddIns\rubybinding.addin";
			
			MockCSharpProject project = new MockCSharpProject();
			SelectedTests selectedTests = RubySelectedTestsHelper.CreateSelectedTests(project);
			ProcessStartInfo processStartInfo = GetProcessStartInfoFromTestRunnerApp(selectedTests);
			
			string expectedCommandLine = 
				"--disable-gems " +
				"\"-Ic:\\rubybinding\\AddIns\\TestRunner\" " +
				"\"c:\\rubybinding\\AddIns\\TestRunner\\sdtest.rb\" " +
				"-- " +
				"\"results.txt\" " +
				"\"temp.tmp\"";
			
			Assert.AreEqual(expectedCommandLine, processStartInfo.Arguments);
		}
예제 #11
0
        public void Init()
        {
            AddInPathHelper helper = new AddInPathHelper("PythonBinding");

            pythonAddIn = helper.CreateDummyAddInInsideAddInTree();
        }