Merge pull request #5960 from dotnet/dev/jgoshi/enableSlnBuildingTests

Re-enable solution building tests
This commit is contained in:
Eric Erhardt 2017-03-08 14:51:46 -06:00 committed by GitHub
commit 2a382c9997
2 changed files with 12 additions and 15 deletions

View file

@ -229,11 +229,10 @@ namespace Microsoft.DotNet.Migration.Tests
.Execute($"restore \"{solutionRelPath}\"") .Execute($"restore \"{solutionRelPath}\"")
.Should().Pass(); .Should().Pass();
//ISSUE: https://github.com/dotnet/cli/issues/5205 new DotnetCommand()
//new DotnetCommand() .WithWorkingDirectory(projectDirectory)
// .WithWorkingDirectory(projectDirectory) .Execute($"build \"{solutionRelPath}\"")
// .Execute($"build \"{solutionRelPath}\"") .Should().Pass();
// .Should().Pass();
} }
private void MigrateAndBuild(string groupName, string projectName, [CallerMemberName] string callingMethod = "", string identifier = "") private void MigrateAndBuild(string groupName, string projectName, [CallerMemberName] string callingMethod = "", string identifier = "")
@ -257,11 +256,10 @@ namespace Microsoft.DotNet.Migration.Tests
.Execute($"restore \"{solutionRelPath}\"") .Execute($"restore \"{solutionRelPath}\"")
.Should().Pass(); .Should().Pass();
//ISSUE: https://github.com/dotnet/cli/issues/5205 new DotnetCommand()
//new DotnetCommand() .WithWorkingDirectory(projectDirectory)
// .WithWorkingDirectory(projectDirectory) .Execute($"build \"{solutionRelPath}\"")
// .Execute($"build \"{solutionRelPath}\"") .Should().Pass();
// .Should().Pass();
SlnFile slnFile = SlnFile.Read(Path.Combine(projectDirectory.FullName, solutionRelPath)); SlnFile slnFile = SlnFile.Read(Path.Combine(projectDirectory.FullName, solutionRelPath));

View file

@ -465,11 +465,10 @@ EndGlobal
cmd.StdErr.Should().BeEmpty(); cmd.StdErr.Should().BeEmpty();
} }
//ISSUE: https://github.com/dotnet/cli/issues/5205 [Theory]
//[Theory] [InlineData("TestAppWithSlnAndCsprojFiles")]
//[InlineData("TestAppWithSlnAndCsprojFiles")] [InlineData("TestAppWithSlnAndCsprojProjectGuidFiles")]
//[InlineData("TestAppWithSlnAndCsprojProjectGuidFiles")] [InlineData("TestAppWithEmptySln")]
//[InlineData("TestAppWithEmptySln")]
public void WhenValidProjectIsPassedTheSlnBuilds(string testAsset) public void WhenValidProjectIsPassedTheSlnBuilds(string testAsset)
{ {
var projectDirectory = TestAssets var projectDirectory = TestAssets