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:
parent
45abe6d52b
commit
8358ccb5e8
14 changed files with 276 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue