From ea47700f7520d0b43a866e52fa6b2681df0801ed Mon Sep 17 00:00:00 2001 From: Vagisha Nidhi Date: Fri, 10 Aug 2018 14:32:29 +0530 Subject: [PATCH 1/2] TestPlatform 15.9.0-preview Insertion --- build/DependencyVersions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props index 07e237526..abef520fc 100644 --- a/build/DependencyVersions.props +++ b/build/DependencyVersions.props @@ -53,7 +53,7 @@ $(NuGetBuildTasksPackageVersion) $(NuGetBuildTasksPackageVersion) $(NuGetBuildTasksPackageVersion) - 15.8.0 + 15.9.0-preview-20180807-05 $(MicrosoftNETTestSdkPackageVersion) $(MicrosoftNETTestSdkPackageVersion) 0.2.0-beta-000042 From 00bf470ddbc2a4adbefb0f52c6b8638e3eb842b3 Mon Sep 17 00:00:00 2001 From: Vagisha Nidhi Date: Fri, 10 Aug 2018 16:26:00 +0530 Subject: [PATCH 2/2] Updated test --- .../GivenDotnetTestBuildsAndRunsTestfromCsproj.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs b/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs index 7121959fe..bc88af2cd 100644 --- a/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs +++ b/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs @@ -152,11 +152,14 @@ namespace Microsoft.DotNet.Cli.Test.Tests .ExecuteWithCapturedOutput("--logger \"trx;logfilename=custom.trx\" --logger console;verbosity=normal -- RunConfiguration.ResultsDirectory=" + trxLoggerDirectory); // Verify - var trxFilePath = Path.Combine(trxLoggerDirectory, "custom.trx"); - Assert.True(File.Exists(trxFilePath)); - result.StdOut.Should().Contain(trxFilePath); - result.StdOut.Should().Contain("Passed VSTestPassTest"); - result.StdOut.Should().Contain("Failed VSTestFailTest"); + if (!DotnetUnderTest.IsLocalized()) + { + var trxFilePath = Path.Combine(trxLoggerDirectory, "custom.trx"); + Assert.True(File.Exists(trxFilePath)); + result.StdOut.Should().Contain(trxFilePath); + result.StdOut.Should().Contain("Passed VSTestPassTest"); + result.StdOut.Should().Contain("Failed VSTestFailTest"); + } // Cleanup trxLoggerDirectory if it exist if (Directory.Exists(trxLoggerDirectory))