Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6319 from smadala/tp-insert-0414
Browse files Browse the repository at this point in the history
TestPlatform 15.1.0-preview-20170414-04 insertion
  • Loading branch information
Livar authored Apr 19, 2017
2 parents 33b83ee + 3f82e11 commit 12dbed6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), testAsset.props))\testAsset.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
<RuntimeIdentifiers>win7-x86</RuntimeIdentifiers>
<RuntimeIdentifier Condition=" '$(TargetFramework)' == 'net46' ">win7-x86</RuntimeIdentifier>
Expand Down
2 changes: 1 addition & 1 deletion build/DependencyVersions.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<CLI_NETSDK_Version>2.0.0-alpha-20170414-1</CLI_NETSDK_Version>
<CLI_NuGet_Version>4.3.0-beta1-2418</CLI_NuGet_Version>
<CLI_WEBSDK_Version>1.0.0-rel-20170413-451</CLI_WEBSDK_Version>
<CLI_TestPlatform_Version>15.1.0-preview-20170316-05</CLI_TestPlatform_Version>
<CLI_TestPlatform_Version>15.1.0-preview-20170414-04</CLI_TestPlatform_Version>
<SharedFrameworkVersion>$(CLI_SharedFrameworkVersion)</SharedFrameworkVersion>
<SharedHostVersion>$(CLI_SharedFrameworkVersion)</SharedHostVersion>
<HostFxrVersion>$(CLI_SharedFrameworkVersion)</HostFxrVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Microsoft.DotNet.Cli.Utils;
using System.IO;
using System;
using System.Runtime.CompilerServices;

namespace Microsoft.DotNet.Cli.Test.Tests
{
Expand Down Expand Up @@ -89,7 +90,7 @@ public void TestWillNotBuildTheProjectIfNoBuildArgsIsGiven()
.ExecuteWithCapturedOutput("--no-build");

// Verify
result.StdOut.Should().Contain(expectedError);
result.StdErr.Should().Contain(expectedError);
}

[Fact]
Expand Down Expand Up @@ -185,11 +186,12 @@ public void ItBuildsAndTestsAppWhenRestoringToSpecificDirectory()
result.StdOut.Should().Contain("Failed TestNamespace.VSTestTests.VSTestFailTest");
}

private string CopyAndRestoreVSTestDotNetCoreTestApp(){
private string CopyAndRestoreVSTestDotNetCoreTestApp([CallerMemberName] string callingMethod = "")
{
// Copy VSTestDotNetCore project in output directory of project dotnet-vstest.Tests
string testAppName = "VSTestDotNetCore";
var testInstance = TestAssets.Get(testAppName)
.CreateInstance()
.CreateInstance(callingMethod)
.WithSourceFiles();

var testProjectDirectory = testInstance.Root.FullName;
Expand Down

0 comments on commit 12dbed6

Please sign in to comment.