From 63a52683734a790b3f35e2354c820c74fc175897 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Thu, 17 Aug 2017 14:21:38 -0700 Subject: [PATCH 1/3] add nuget command line to a tafgt projects packages config so it gets restored on the build server --- GoogleTestAdapter/VsPackage.TAfGT/packages.config | 1 + 1 file changed, 1 insertion(+) diff --git a/GoogleTestAdapter/VsPackage.TAfGT/packages.config b/GoogleTestAdapter/VsPackage.TAfGT/packages.config index c5ddcac55..832b99531 100644 --- a/GoogleTestAdapter/VsPackage.TAfGT/packages.config +++ b/GoogleTestAdapter/VsPackage.TAfGT/packages.config @@ -3,4 +3,5 @@ + \ No newline at end of file From 302f940873e615385ec9c2e34fd8b9ae2c0878c3 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Thu, 17 Aug 2017 22:55:02 -0700 Subject: [PATCH 2/3] change gta to tafgt to see if it fixes tets runs --- .../Tests.Common/AbstractConsoleIntegrationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs b/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs index 9a5bae340..5edcf82ba 100644 --- a/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs +++ b/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs @@ -44,7 +44,7 @@ public static void GetDirectories(out string testAdapterDir, out string testSolu match.Success.Should().BeTrue(); string binariesPath = match.Groups[1].Value; string debugOrRelease = match.Groups[2].Value; - testAdapterDir = Path.Combine(binariesPath, "GoogleTestAdapter", debugOrRelease, "Packaging.GTA"); + testAdapterDir = Path.Combine(binariesPath, "GoogleTestAdapter", debugOrRelease, "Packaging.TAfGT"); testSolutionFile = Path.Combine(binariesPath, @"..\..\SampleTests\SampleTests.sln"); } From c164120e87833c0368f97a669f741c32b59a0fd8 Mon Sep 17 00:00:00 2001 From: Spencer Bloom Date: Thu, 17 Aug 2017 23:46:05 -0700 Subject: [PATCH 3/3] template abstract console integration tests to work when only tafgt is in sln --- ...ionTests.cs => AbstractConsoleIntegrationTests.cs.tt} | 9 ++++++++- ResolveTTs.proj | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) rename GoogleTestAdapter/Tests.Common/{AbstractConsoleIntegrationTests.cs => AbstractConsoleIntegrationTests.cs.tt} (94%) diff --git a/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs b/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs.tt similarity index 94% rename from GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs rename to GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs.tt index 5edcf82ba..9eaf4416a 100644 --- a/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs +++ b/GoogleTestAdapter/Tests.Common/AbstractConsoleIntegrationTests.cs.tt @@ -1,4 +1,7 @@ -// This file has been modified by Microsoft on 6/2017. +<#@ template language="c#" hostspecific="true" #> +<#@ output extension=".cs" #> +<#@ parameter type="System.String" name="TestAdapterFlavor" #> +// This file has been modified by Microsoft on 8/2017. using System.Collections.Generic; using System.IO; @@ -44,7 +47,11 @@ public static void GetDirectories(out string testAdapterDir, out string testSolu match.Success.Should().BeTrue(); string binariesPath = match.Groups[1].Value; string debugOrRelease = match.Groups[2].Value; +<# if (TestAdapterFlavor == "GTA") { #> + testAdapterDir = Path.Combine(binariesPath, "GoogleTestAdapter", debugOrRelease, "Packaging.GTA"); +<# } else if (TestAdapterFlavor == "TAfGT") { #> testAdapterDir = Path.Combine(binariesPath, "GoogleTestAdapter", debugOrRelease, "Packaging.TAfGT"); +<# } #> testSolutionFile = Path.Combine(binariesPath, @"..\..\SampleTests\SampleTests.sln"); } diff --git a/ResolveTTs.proj b/ResolveTTs.proj index c4565d503..eb309dde8 100644 --- a/ResolveTTs.proj +++ b/ResolveTTs.proj @@ -31,6 +31,10 @@ TextTemplatingFileGenerator app.config + + TextTemplatingFileGenerator + AbstractConsoleIntegrationTests.cs + TextTemplatingFileGenerator app.config