Skip to content

Commit

Permalink
Fixes Test Platform. (#2393)
Browse files Browse the repository at this point in the history
Also updates to the latest version of TP.Fakes bits so we can catch this in E2E tests.
  • Loading branch information
AbhitejJohn committed Apr 8, 2020
1 parent 2c683b6 commit 732a3a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/TestPlatform.Dependencies.props
Expand Up @@ -32,7 +32,7 @@
<JsonNetVersion>9.0.1</JsonNetVersion>
<MoqVersion>4.7.63</MoqVersion>
<TestPlatformExternalsVersion>16.0.0-preview-2148743</TestPlatformExternalsVersion>
<MicrosoftFakesVersion>16.6.3-beta.20169.2</MicrosoftFakesVersion>
<MicrosoftFakesVersion>16.6.2-beta.20208.2</MicrosoftFakesVersion>

<MicrosoftBuildPackageVersion>16.0.461</MicrosoftBuildPackageVersion>
<MicrosoftBuildFrameworkPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildFrameworkPackageVersion>
Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.TestPlatform.Common/Utilities/FakesUtilities.cs
Expand Up @@ -90,6 +90,12 @@ private static FrameworkVersion GetFramework(string runSettingsXml)
{
var sourceTFMMap = CreateDictionary(sources, framework);
var fakesSettings = newConfigurator(sourceTFMMap);
// if no fakes, return settings unchanged
if (fakesSettings == null)
{
return false;
}

XmlRunSettingsUtilities.InsertDataCollectorsNode(runSettings.CreateNavigator(), fakesSettings);
return true;
}
Expand Down

0 comments on commit 732a3a3

Please sign in to comment.