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

@ -41,7 +41,7 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
adapter.Listen();
var testCommand = new DotnetTestCommand();
var result = testCommand.Execute($"{_projectFilePath} -o {_outputPath} --port {adapter.Port}");
var result = testCommand.Execute($"{_projectFilePath} -o {_outputPath} --port {adapter.Port} --no-build");
result.Should().Pass();
adapter.Messages["TestSession.Connected"].Count.Should().Be(1);
@ -58,7 +58,7 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
adapter.Listen();
var testCommand = new DotnetTestCommand();
var result = testCommand.Execute($"{_projectFilePath} -o {_outputPath} --port {adapter.Port}");
var result = testCommand.Execute($"{_projectFilePath} -o {_outputPath} --port {adapter.Port} --no-build");
result.Should().Pass();
adapter.Messages["TestSession.Connected"].Count.Should().Be(1);