public void SetUp()
		{
			fileSystemMock = new DynamicMock(typeof (IFileSystem));

			tempRoot = SystemPath.UniqueTempPath();
			tempSubRoot = tempRoot.Combine("subrepo");

			sc = new FileSourceControl((IFileSystem) fileSystemMock.MockInstance);
			sc.RepositoryRoot = tempRoot.ToString();
		}
		protected void Init()
		{
		    tempOutputFile = new TempDirectory().CreateTextFile("results.xml", "foo");
		    executorMock = new DynamicMock(typeof (ProcessExecutor));

			task = new NUnitTask(executorMock.MockInstance as ProcessExecutor);
			task.Assemblies = TEST_ASSEMBLIES;
			task.NUnitPath = NUnitConsolePath;
	        task.OutputFile = tempOutputFile.ToString();
			result = Integration("testProject", WORKING_DIRECTORY, ARTIFACT_DIRECTORY);
		}
Пример #3
0
		public void SetUp()
		{
			srcRoot = SystemPath.UniqueTempPath();
			pubRoot = SystemPath.UniqueTempPath();

			publisher = new BuildPublisher();
			publisher.PublishDir = pubRoot.ToString();
			publisher.SourceDir = srcRoot.ToString();
			result = IntegrationResultMother.CreateSuccessful("99");
			labelPubDir = pubRoot.Combine("99");
		}
Пример #4
0
        public void PublishDirShouldBeRelativeToIntegrationArtifactDirectory()
        {
            srcRoot.CreateSubDirectory("foo").CreateTextFile(fileName, fileContents);
            result.ArtifactDirectory = pubRoot.ToString();

            publisher.PublishDir = "bar";
            publisher.Run(result);

            labelPubDir = pubRoot.Combine("bar").Combine("99").Combine("foo");
            Assert.IsTrue(labelPubDir.Combine(fileName).Exists(), "File not found in build number directory");
        }
		protected void CreateTempDir()
		{
			tempDir = SystemPath.Temp;
		}
 public void Setup()
 {
     tempRoot = SystemPath.UniqueTempPath().CreateDirectory();
     tempSubRoot = tempRoot.CreateSubDirectory("subrepo");
     tempOtherRoot = SystemPath.UniqueTempPath().CreateDirectory();
 }
Пример #7
0
		private void CreateTempFiles(SystemPath path, string[] filenames)
		{
			foreach (string filename in filenames)
			{
				path.CreateEmptyFile(filename);
			}
		}
		public void CreateFakeOutputDir()
		{
			testDir = SystemPath.UniqueTempPath();
		}