Enabling E2E tests by setting HOME and USERPROFILE env variables. This will cause the NuGet.Config and fallback folder to be extract to the location in those variables during the tests. Also refactored all NuGet path calculators for the first run to a single place.

This commit is contained in:
Livar Cunha 2017-03-30 11:28:01 -07:00
parent a46237784e
commit 0c1af8a2fe
6 changed files with 47 additions and 23 deletions

View file

@ -171,11 +171,15 @@ namespace Microsoft.DotNet.Cli
{
using (var nugetPackagesArchiver = new NuGetPackagesArchiver())
{
var cliFallbackFolderPathCalculator = new CLIFallbackFolderPathCalculator();
var environmentProvider = new EnvironmentProvider();
var commandFactory = new DotNetCommandFactory(alwaysRunOutOfProc: true);
var nugetConfig = new NuGetConfi();
var nugetCachePrimer =
new NuGetCachePrimer(nugetPackagesArchiver, nugetCacheSentinel, nugetConfig);
var nugetConfig = new NuGetConfi(cliFallbackFolderPathCalculator);
var nugetCachePrimer = new NuGetCachePrimer(
nugetPackagesArchiver,
nugetCacheSentinel,
nugetConfig,
cliFallbackFolderPathCalculator);
var dotnetConfigurer = new DotnetFirstTimeUseConfigurer(
nugetCachePrimer,
nugetCacheSentinel,