Making the tests aware of the Configuration used in the build.
This commit is contained in:
parent
99d6b1fd6d
commit
58bc3b5853
2 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||
using Xunit;
|
||||
|
@ -91,6 +92,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
|||
var testAppName = "MSBuildTestAppWithToolInDependencies";
|
||||
var testInstance = TestAssetsManager
|
||||
.CreateTestInstance(testAppName);
|
||||
var configuration = Environment.GetEnvironmentVariable("Configuration") ?? "Debug";
|
||||
|
||||
var testProjectDirectory = testInstance.TestRoot;
|
||||
|
||||
|
@ -108,7 +110,8 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
|||
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.ExecuteWithCapturedOutput("-v dependency-tool-invoker -f netcoreapp1.0 portable")
|
||||
.ExecuteWithCapturedOutput(
|
||||
$"-v dependency-tool-invoker -c {configuration} -f netcoreapp1.0 portable")
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue