reduce path in test project for nuget restore

This commit is contained in:
Jason Gilbertson 2023-06-09 16:13:33 -04:00
Родитель 883d9fec87
Коммит 1aec05196e
4 изменённых файлов: 5 добавлений и 5 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -328,4 +328,4 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder
.mfractor/
**/TestDataFiles/*
**/tst/*

Просмотреть файл

@ -31,7 +31,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="TestDataFiles\" />
<Folder Include="Files\" />
</ItemGroup>
</Project>

Просмотреть файл

@ -248,7 +248,7 @@ namespace CollectSFData.DataFile.Tests
throw new NotImplementedException();
string tempPath = TestUtilities.TempDir;
string outputFile = $"{tempPath}/txetltest.json";
string[] inputFiles = Directory.GetFiles("", $"{TestUtilities.TestDataFilesDir}/fabric_counters*.blg", SearchOption.AllDirectories);
string[] inputFiles = Directory.GetFiles("", $"{TestUtilities.TestDir}/fabric_counters*.blg", SearchOption.AllDirectories);
string inputFile = inputFiles[0];
string logFile = $"{tempPath}\\etl.log";
Assert.IsTrue(File.Exists(inputFile));
@ -283,7 +283,7 @@ namespace CollectSFData.DataFile.Tests
string manifestPath = $"{TestUtilities.SolutionDir}/manifests";
string tempPath = TestUtilities.TempDir;
string outputFile = $"{tempPath}/txetltest.json";
string[] inputFiles = Directory.GetFiles("", $"{TestUtilities.TestDataFilesDir}/fabric_traces_*.etl", SearchOption.AllDirectories);
string[] inputFiles = Directory.GetFiles("", $"{TestUtilities.TestDir}/fabric_traces_*.etl", SearchOption.AllDirectories);
string inputFile = inputFiles[0];
string logFile = $"{tempPath}\\etl.log";
Assert.IsTrue(Directory.Exists(manifestPath));

Просмотреть файл

@ -33,7 +33,7 @@ namespace CollectSFDataDllTest.Utilities
public static string SolutionDir => $"{WorkingDir}\\..\\..\\..\\..\\..\\..";
public static string TempDir => $"{WorkingDir}\\..\\..\\Temp";
public static string TestConfigurationsDir => $"{WorkingDir}\\..\\..\\..\\..\\TestConfigurations";
public static string TestDataFilesDir => $"{WorkingDir}\\..\\..\\..\\..\\TestDataFiles";
public static string TestDir => $"{WorkingDir}\\..\\..\\..\\..\\Tst";
public static TestProperties TestProperties { get; set; }
public static string TestPropertiesFile => $"{Environment.GetEnvironmentVariable("LOCALAPPDATA")}\\collectsfdata\\collectSfDataDllTestProperties.json";
public static string TestPropertiesSetupScript => $"{ScriptsDir}\\setup-test-env.ps1";