Make --no-build imply --no-restore for test command.
This commit makes the `--no-build` option for the test command automatically imply `--no-restore`. Fixes issue #7472.
This commit is contained in:
parent
df414ddcfa
commit
de10b22bcd
16 changed files with 30 additions and 29 deletions
|
@ -123,11 +123,12 @@ namespace Microsoft.DotNet.Cli.Test.Tests
|
|||
// Call test
|
||||
CommandResult result = new DotnetTestCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.ExecuteWithCapturedOutput("--no-build");
|
||||
.ExecuteWithCapturedOutput("--no-build -v:m");
|
||||
|
||||
// Verify
|
||||
if (!DotnetUnderTest.IsLocalized())
|
||||
{
|
||||
result.StdOut.Should().NotContain("Restore");
|
||||
result.StdErr.Should().Contain(expectedError);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue