Integrate ProjectModel server tests
This commit is contained in:
parent
b5de686ba4
commit
f7e4714dc5
20 changed files with 28 additions and 29 deletions
|
@ -28,6 +28,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
"dotnet-compile.UnitTests",
|
||||
"dotnet-build.Tests",
|
||||
"dotnet-pack.Tests",
|
||||
"dotnet-projectmodel-server.Tests",
|
||||
"dotnet-resgen.Tests",
|
||||
"dotnet-run.Tests",
|
||||
"Microsoft.DotNet.Cli.Utils.Tests",
|
||||
|
@ -76,8 +77,11 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestProjects"))
|
||||
.Execute().EnsureSuccessful();
|
||||
|
||||
// The 'testapp' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
|
||||
dotnet.Restore().WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "testapp")).CaptureStdErr().CaptureStdOut().Execute();
|
||||
// The 'ProjectModelServer' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
|
||||
dotnet.Restore().WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectModelServer"))
|
||||
.CaptureStdErr()
|
||||
.CaptureStdOut()
|
||||
.Execute();
|
||||
|
||||
return c.Success();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue