Refactor tests, add coverage for building templates
This commit is contained in:
parent
7b76c6dd89
commit
6fd4a5afad
5 changed files with 300 additions and 241 deletions
|
@ -142,6 +142,9 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
RemoveCliGeneratedEnvironmentVariablesFrom(psi);
|
||||
|
||||
psi.Environment["DOTNET_MULTILEVEL_LOOKUP"] = "0";
|
||||
psi.Environment["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1";
|
||||
|
||||
AddEnvironmentVariablesTo(psi);
|
||||
|
||||
AddWorkingDirectoryTo(psi);
|
||||
|
@ -203,11 +206,11 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
args = newArgs;
|
||||
|
||||
executable = new Muxer().MuxerPath;
|
||||
executable = RepoDirectoriesProvider.DotnetUnderTest;
|
||||
}
|
||||
else if ( executable == "dotnet")
|
||||
{
|
||||
executable = new Muxer().MuxerPath;
|
||||
executable = RepoDirectoriesProvider.DotnetUnderTest;
|
||||
}
|
||||
else if (!Path.IsPathRooted(executable))
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
|
||||
s_testAssets = new TestAssets(
|
||||
new DirectoryInfo(assetsRoot),
|
||||
new FileInfo(new Muxer().MuxerPath),
|
||||
new FileInfo(RepoDirectoriesProvider.DotnetUnderTest),
|
||||
RepoDirectoriesProvider.TestWorkingFolder);
|
||||
}
|
||||
|
||||
|
@ -112,8 +112,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
args.Add("exec");
|
||||
args.Add(ArgumentEscaper.EscapeSingleArg(executablePath));
|
||||
|
||||
var muxer = new Muxer();
|
||||
executablePath = muxer.MuxerPath;
|
||||
executablePath = RepoDirectoriesProvider.DotnetUnderTest;
|
||||
}
|
||||
|
||||
var executableCommand = new TestCommand(executablePath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue