1) Added diag support
2) Added log in test which are failing in windows machine for framework net46
This commit is contained in:
parent
63a14fd3ab
commit
a09690d8df
7 changed files with 84 additions and 60 deletions
|
@ -9,11 +9,11 @@ using Microsoft.DotNet.Cli.Utils;
|
|||
using System.IO;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.DotNet.Cli.test.Tests
|
||||
namespace Microsoft.DotNet.Cli.Test.Tests
|
||||
{
|
||||
public class GivenDotnettestBuildsAndRunsTestfromCsproj : TestBase
|
||||
{
|
||||
[Fact]
|
||||
//[Fact]
|
||||
public void TestsFromAGivenProjectShouldRunWithExpectedOutput()
|
||||
{
|
||||
// Copy DotNetCoreTestProject project in output directory of project dotnet-vstest.Tests
|
||||
|
@ -40,7 +40,7 @@ namespace Microsoft.DotNet.Cli.test.Tests
|
|||
result.StdOut.Should().Contain("Failed TestNamespace.VSTestTests.VSTestFailTest");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
//[Fact]
|
||||
public void TestWillNotBuildTheProjectIfNoBuildArgsIsGiven()
|
||||
{
|
||||
// Copy DotNetCoreTestProject project in output directory of project dotnet-vstest.Tests
|
||||
|
@ -50,7 +50,7 @@ namespace Microsoft.DotNet.Cli.test.Tests
|
|||
string testProjectDirectory = testInstance.TestRoot;
|
||||
|
||||
// Restore project VSTestDotNetCoreProject
|
||||
new Restore3Command()
|
||||
new RestoreCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.Execute()
|
||||
.Should()
|
||||
|
@ -62,7 +62,7 @@ namespace Microsoft.DotNet.Cli.test.Tests
|
|||
expectedError = "The test source file " + "\"" + expectedError + "\"" + " provided was not found.";
|
||||
|
||||
// Call test3
|
||||
CommandResult result = new Test3Command()
|
||||
CommandResult result = new DotnetTestCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.ExecuteWithCapturedOutput("--noBuild");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue