Added build before running the tests and the no-build option to opt out of it.

Added new tests to ProjectDependencyCommandResolver and new E2E tests for dotnet test.
This commit is contained in:
Livar Cunha 2016-03-14 17:38:36 -07:00
parent 45abe6d52b
commit 8358ccb5e8
14 changed files with 276 additions and 17 deletions

View file

@ -38,6 +38,7 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
"--build-base-path", BuildBasePath,
"--configuration", Config,
"--runtime", Runtime,
"--no-build",
"--additional-parameters", "additional-parameter-value"
});
@ -179,5 +180,17 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
_dotnetTestFullParams.RemainingArguments.ShouldBeEquivalentTo(
new [] { "--additional-parameters", "additional-parameter-value" });
}
[Fact]
public void It_sets_no_build_to_true_when_it_is_passed()
{
_dotnetTestFullParams.NoBuild.Should().BeTrue();
}
[Fact]
public void It_sets_no_build_to_false_when_it_is_not_passed_in()
{
_emptyDotnetTestParams.NoBuild.Should().BeFalse();
}
}
}