477 references to Path
Infrastructure.Tests (477)
BuildWarningPolicyTests.cs (2)
21var script = Path.Combine(workspace.Path, "evaluate.ps1"); 22var resultPath = Path.Combine(workspace.Path, "evaluation_results.json");
CreateFailingTestIssue\CreateFailingTestIssueToolTests.cs (2)
691var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)); 832var fixtureDirectory = Path.Combine(_workspace.Path, Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture));
CreateLayout\CreateLayoutTests.cs (63)
28var stale = Path.Combine(workspace.Path, "bin", project, "Debug", "net11.0", "linux-x64", "publish"); 30var discovered = Path.Combine(workspace.Path, "bin", project, "Debug", 33var selected = Path.Combine(workspace.Path, "selected payload"); 35var output = Path.Combine(workspace.Path, "layout"); 36using var builder = new LayoutBuilder(output, workspace.Path, "linux-x64", "Debug", "1.0", false, 77var discovered = Path.Combine(workspace.Path, "bin", project, "Debug", 80using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "linux-x64", "Debug", "1.0", false, 103var source = Path.Combine(workspace.Path, "bin", "Aspire.Managed", "Debug", 106var output = Path.Combine(workspace.Path, "layout"); 107using var builder = new LayoutBuilder(output, workspace.Path, "linux-x64", "Debug", "1.0", false, 122var source = Path.Combine(workspace.Path, "bin", "Aspire.Hosting.Native.Server", "Debug", 131var output = Path.Combine(workspace.Path, "layout"); 132using var builder = new LayoutBuilder(output, workspace.Path, rid, "Debug", "1.0.0", verbose: false, 153var source = Path.Combine(workspace.Path, "bin", "Aspire.Hosting.Native.Server", "Debug", 161var output = Path.Combine(workspace.Path, "layout"); 162using var builder = new LayoutBuilder(output, workspace.Path, "linux-x64", "Debug", "1.0.0", false, 182var publish = Path.Combine(workspace.Path, "bin", "Aspire.TerminalHost", "Debug", 192using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, rid, "Debug", "1.0", false, 195var target = Path.Combine(workspace.Path, "layout", "terminalhost"); 210Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 213var path = Path.Combine(workspace.Path, file); 218Assert.True(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 219Assert.True(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path, rid)); 221File.WriteAllText(Path.Combine(workspace.Path, files[^1]), string.Empty); 223Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path)); 224Assert.False(Aspire.Shared.TerminalHostPayload.IsValid(workspace.Path, rid)); 234using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", configuration, "1.0.0", verbose: false, 236var expectedPaths = GetPublishPaths(workspace.Path, configuration); 238foreach (var path in expectedPaths.Concat(GetPublishPaths(workspace.Path, otherConfiguration))) 256using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, 258var nonRidPath = GetPublishPaths(workspace.Path, "Debug")[^1]; 269var outputPath = Path.Combine(workspace.Path, "layout"); 274"--artifacts", workspace.Path, 287var discoveredPath = CreateDashboardPublishOutput(workspace.Path, rid, "libe_sqlite3.so"); 288var explicitPath = Path.Combine(workspace.Path, "missing prepared Dashboard"); 289var outputPath = Path.Combine(workspace.Path, "layout"); 290using var builder = new LayoutBuilder(outputPath, workspace.Path, rid, "Debug", "1.0.0", 311var publishPath = CreateDashboardPublishOutput(workspace.Path, rid, sqliteLibraryName); 338var outputPath = Path.Combine(workspace.Path, "layout"); 339using var builder = new LayoutBuilder(outputPath, workspace.Path, rid, "Debug", "1.0.0", verbose: false, 358var publishPath = CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 361var outputPath = Path.Combine(workspace.Path, "layout"); 362using var builder = new LayoutBuilder(outputPath, workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, 377var publishPath = CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 388var outputPath = Path.Combine(workspace.Path, "layout"); 389using var builder = new LayoutBuilder(outputPath, workspace.Path, "win-x64", "Debug", "1.0.0", verbose: false, 408var publishPath = CreateDashboardPublishOutput(workspace.Path, rid, sqliteLibraryName); 419var outputPath = Path.Combine(workspace.Path, "layout"); 420using var builder = new LayoutBuilder(outputPath, workspace.Path, rid, "Debug", "1.0.0", verbose: false, 433var publish = CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 434var explicitPath = Path.Combine(workspace.Path, "prepared dashboard outside artifacts"); 441var output = Path.Combine(workspace.Path, "layout"); 442using var builder = new LayoutBuilder(output, workspace.Path, "win-x64", "Debug", "1.0", false, 461CreateDashboardPublishOutput(workspace.Path, "win-x64", "e_sqlite3.dll"); 462using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, 475using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, 483foreach (var path in GetPublishPaths(workspace.Path, "Debug")[..^1])
DownloadFailingJobLogs\DownloadFailingJobLogsToolTests.cs (5)
46var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-success"); 62var logPath = Path.Combine(_workspace.Path, "failed_job_0_Tests___Linux___Sample__Sample____Sample__linux-latest_.log"); 66var extractedTrx = Path.Combine(_workspace.Path, "artifact_0_Sample_linux-latest", "testresults", "Sample_net10.0.trx"); 73var fixtureDirectory = Path.Combine(_workspace.Path, "fixtures-missing-artifact"); 95WorkingDirectory = _workspace.Path
ExecutableFileTests.cs (2)
38var path = Path.Combine(_workspace.Path, $"stub-{i}"); 68var path = Path.Combine(_workspace.Path, "tool");
ExtractTestPartitions\ExtractTestPartitionsTests.cs (22)
31var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 37var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 56var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 62var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 77var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 83var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 101var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 104var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 119var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 126var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 144var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 151var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 167var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 168var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 193var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 199var outputFile = Path.Combine(_workspace.Path, "nested", "dir", "partitions.txt"); 213var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 218var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 235var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 242var outputFile = Path.Combine(_workspace.Path, "partitions.txt"); 260var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 267var outputFile = Path.Combine(_workspace.Path, "partitions.txt");
GenerateTestSummary\GenerateTestSummaryToolTests.cs (15)
32var trxPath = Path.Combine(_workspace.Path, "sample.trx"); 54var trxPath = Path.Combine(_workspace.Path, "mixed.trx"); 61var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 82var trxPath = Path.Combine(_workspace.Path, "aborted.trx"); 88var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 105var trxPath = Path.Combine(_workspace.Path, "allpass.trx"); 111var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 134var trxDir = Path.Combine(_workspace.Path, "corrupt"); 138var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 161var trxDir = Path.Combine(_workspace.Path, "partial"); 168var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 188var trxDir = Path.Combine(_workspace.Path, "partial-with-failure"); 195var jsonPath = Path.Combine(_workspace.Path, "failed.json"); 217var trxPath = Path.Combine(_workspace.Path, "timestamped.trx"); 226var jsonPath = Path.Combine(_workspace.Path, "failed.json");
Hex1bNativePublishingTests.cs (17)
99$"-p:_ArtifactsLogDir={Path.Combine(_workspace.Path, "logs")}"]); 141var dotnet = await MSBuildServerFallbackDiagnostic.CreateDotNetWrapperAsync(_workspace.Path, GetDotNetPath()); 166var destination = Path.Combine(_workspace.Path, "publish", relativePath); 207var artifacts = Path.Combine(_workspace.Path, "artifacts"); 266var packages = Path.Combine(_workspace.Path, "packages"); 268var layout = Path.Combine(_workspace.Path, "layout"); 279var tray = Path.Combine(_workspace.Path, "windows-tray"); 285arguments.AddRange(["--tray-dir", MacTrayTestPayload.Create(_workspace.Path)]); 289var tray = Path.Combine(_workspace.Path, "linux-tray"); 357var layout = Path.Combine(_workspace.Path, "layout"); 369"--output", layout, "--artifacts", Path.Combine(_workspace.Path, "missing-artifacts"), "--rid", rid, "--configuration", "Release"]); 389var source = Path.Combine(_workspace.Path, "package", pathInPackage); 399var unrelatedSource = Path.Combine(_workspace.Path, "other", "OpenConsole.exe"); 414new XAttribute("Include", Path.Combine(_workspace.Path, "duplicate", "OpenConsole.exe")), 448var projectPath = Path.Combine(_workspace.Path, "Publish.proj"); 474var resultPath = Path.Combine(_workspace.Path, $"msbuild-result-{Guid.NewGuid():N}.json"); 487WorkingDirectory = _workspace.Path,
MicrosoftTestingPlatformTests.cs (3)
21var script = Path.Combine(workspace.Path, "evaluate.ps1"); 22var resultPath = Path.Combine(workspace.Path, "evaluation_results.json"); 68var script = Path.Combine(workspace.Path, "runner-help.ps1");
Pipelines\BundleBuildWrapperTests.cs (3)
84["TEST_ROOT"] = workspace.Path, 142.WithEnvironmentVariable("TEST_ROOT", workspace.Path) 150File.ReadAllLines(Path.Combine(workspace.Path, name))
Pipelines\NixCliPackageTests.cs (5)
28var outputPath = Path.Combine(_workspace.Path, "versions.json"); 29var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 68var outputPath = Path.Combine(_workspace.Path, "versions.json"); 69var fakeBinPath = Path.Combine(_workspace.Path, "bin"); 125var outputPath = Path.Combine(_workspace.Path, "versions.json");
Pipelines\NpmCliPackageTests.cs (4)
61var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 101var testScriptPath = Path.Combine(_workspace.Path, $"{Path.GetRandomFileName()}.js"); 242var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName()); 307var testRoot = Path.Combine(_workspace.Path, Path.GetRandomFileName());
Pipelines\TrayBundleTests.cs (40)
32using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, 38Assert.Empty(Directory.EnumerateFileSystemEntries(workspace.Path)); 47using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, 61var source = Path.Combine(workspace.Path, "publish"); 64var layout = Path.Combine(workspace.Path, rid); 65using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, 94using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, 99Assert.Empty(Directory.EnumerateFileSystemEntries(workspace.Path)); 108using var builder = new LayoutBuilder(workspace.Path, workspace.Path, rid, "Debug", "test", false, 124var source = MacTrayTestPayload.Create(workspace.Path); 126using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "osx-arm64", "Debug", "test", false, 140var source = MacTrayTestPayload.Create(workspace.Path); 142using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, "osx-arm64", "Debug", "test", false, 156var source = MacTrayTestPayload.Create(workspace.Path); 157var layout = Path.Combine(workspace.Path, "osx-arm64"); 159using var builder = new LayoutBuilder(layout, workspace.Path, "osx-arm64", "Debug", "test", false, 205var source = MacTrayTestPayload.Create(workspace.Path); 206var archivePath = Path.Combine(workspace.Path, "signing", "AspireTray.zip"); 207var scriptPath = Path.Combine(workspace.Path, "prepare-signing.ps1"); 272var source = Path.Combine(workspace.Path, "publish with spaces"); 275var layout = Path.Combine(workspace.Path, rid); 276using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, 310var source = Path.Combine(workspace.Path, "publish"); 324using var builder = new LayoutBuilder(Path.Combine(workspace.Path, "layout"), workspace.Path, 351var source = Path.Combine(workspace.Path, "source"); 354var layout = Path.Combine(workspace.Path, rid); 355using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, 408var source = Path.Combine(workspace.Path, "publish with spaces"); 410var layout = Path.Combine(workspace.Path, rid); 411using var builder = new LayoutBuilder(layout, workspace.Path, rid, "Debug", "test", false, 443var script = Path.Combine(workspace.Path, "verify.ps1"); 477var layout = Path.Combine(workspace.Path, "linux-x64"); 503using var builder = new LayoutBuilder(layout, workspace.Path, "linux-x64", "Debug", "test", false,
PowerShellScripts\BuildTestMatrixTests.cs (42)
33var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 42var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 62var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 71var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 85var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 98var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 117var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 130var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 158var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 171var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 194var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 203var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 221var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 230var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 248var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 263var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 282var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 294var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 312var emptyArtifactsDir = Path.Combine(_workspace.Path, "empty-artifacts"); 315var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 332var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 347var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 373var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 382var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 400var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 409var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 428var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 442var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 465var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 474var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 494var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 502var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 520var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 534var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 556var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 574var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 599var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 607var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 634var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 653var outputFile = Path.Combine(_workspace.Path, "matrix.json"); 721var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 735var outputFile = Path.Combine(_workspace.Path, "matrix.json");
PowerShellScripts\CiResourceMonitorTests.cs (2)
25_outputDirectory = Path.Combine(_workspace.Path, "resource-monitor"); 26_summaryPath = Path.Combine(_workspace.Path, "step-summary.md");
PowerShellScripts\DownloadNativeArchivesTests.cs (3)
224File.Exists(Path.Combine(_workspace.Path, "escaped", "aspire-cli-linux-x64-13.4.0.tar.gz")), 453var archives = Path.Combine(_workspace.Path, unique, "archives"); 454var nupkgs = Path.Combine(_workspace.Path, unique, "nupkgs");
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (38)
39var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 42var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 66var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 69var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 92var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 95var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 116var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 119var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 142var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 145var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 169var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 172var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 200var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 203var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 238var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 241var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 265var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 268var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 282var nonExistentFile = Path.Combine(_workspace.Path, "does-not-exist.json"); 283var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 301var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 304var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 327var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 330var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 353var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 356var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 386var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 389var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 413var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 416var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 452var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 455var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 486var canonicalMatrix = Path.Combine(_workspace.Path, "canonical.json"); 489var outputFile = Path.Combine(_workspace.Path, "expanded.json"); 509var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 548var canonicalFile = Path.Combine(_workspace.Path, "canonical.json"); 558var expandedFile = Path.Combine(_workspace.Path, "expanded.json"); 564var githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt");
PowerShellScripts\PowerShellStartupProfileTests.cs (2)
38var cacheRoot = Path.Combine(_workspace.Path, "cache"); 41var scriptPath = Path.Combine(_workspace.Path, "noop.ps1");
PowerShellScripts\SplitTestMatrixByDepsTests.cs (4)
25_githubOutputFile = Path.Combine(_workspace.Path, "github_output.txt"); 185var matrixFile = Path.Combine(_workspace.Path, "matrix.json"); 214var nonExistentFile = Path.Combine(_workspace.Path, "nonexistent.json"); 240var tempMatrixFile = Path.Combine(_workspace.Path, $"matrix_input_{Guid.NewGuid():N}.json");
PowerShellScripts\SplitTestProjectsTests.cs (10)
42var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 48var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 72var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 77var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 100var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 106var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 131var assemblyPath = Path.Combine(_workspace.Path, "TestAssembly.dll"); 138var outputFile = Path.Combine(_workspace.Path, "partitions.json"); 166var nonExistentPath = Path.Combine(_workspace.Path, "DoesNotExist.dll"); 167var outputFile = Path.Combine(_workspace.Path, "partitions.json");
PowerShellScripts\StageNativeCliToolPackagesTests.cs (2)
303var path = Path.Combine(_workspace.Path, Path.GetRandomFileName(), "download"); 310return Path.Combine(_workspace.Path, Path.GetRandomFileName(), "shipping");
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (3)
37var missing = Path.Combine(_workspace.Path, "does-not-exist"); 54var filePath = Path.Combine(_workspace.Path, "not-a-directory.txt"); 214var path = Path.Combine(_workspace.Path, unique, "Shipping");
PowerShellScripts\VerifyNonBlockingTestResultsTests.cs (1)
97var exitCodePath = Path.Combine(_workspace.Path, "missing-exit-code.txt");
PowerShellScripts\WriteClassModeTestPropsTests.cs (6)
28var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 50var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 67var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 79var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props"); 94var artifactsDir = Path.Combine(_workspace.Path, "artifacts"); 106var outputPropsPath = Path.Combine(_workspace.Path, "ClassModeProjects.props");
ResourceGeneratorMetadataTests.cs (7)
36var dotnet = await MSBuildServerFallbackDiagnostic.CreateDotNetWrapperAsync(workspace.Path, DotNetPath); 78Directory.CreateDirectory(Path.Combine(workspace.Path, resourceDirectory)); 82await File.WriteAllTextAsync(Path.Combine(workspace.Path, path), string.Empty); 105var projectPath = Path.Combine(workspace.Path, "Resources.proj"); 107var script = Path.Combine(workspace.Path, "evaluate.ps1"); 110var resultPath = Path.Combine(workspace.Path, "evaluation_results.json"); 116.WithWorkingDirectory(workspace.Path)
Shared\ProcessRunnerTests.cs (8)
18File.WriteAllText(Path.Combine(workspace.Path, "marker.txt"), "working directory"); 24workspace.Path); 45workspace.Path, 62workspace.Path); 74var file = Path.Combine(workspace.Path, "artifact.zip"); 78workspace.Path, 100workspace.Path, 121workspace.Path,
TemplateManifest\TemplateManifestCommandTests.cs (7)
61arguments[0] = Path.Combine(workspace.Path, "missing"); 64arguments[1] = Path.Combine(workspace.Path, "missing"); 67arguments[3] = Path.Combine(workspace.Path, "missing.config"); 106var config = Path.Combine(workspace.Path, "nuget.config"); 110source, processed, Path.Combine(workspace.Path, "cgmanifest.json"), config, 111Path.Combine(workspace.Path, "package feed"), Path.Combine(workspace.Path, "restore directory")
TemplateManifest\TemplateManifestTestEnvironment.cs (7)
34RestoreDirectory = Path.Combine(workspace.Path, "restore"); 35ManifestPath = Path.Combine(workspace.Path, "cgmanifest.json"); 36ConfigPath = Path.Combine(workspace.Path, "nuget.config"); 93var script = Path.Combine(_workspace.Path, scriptName); 97.WithWorkingDirectory(_workspace.Path) 103.WithEnvironmentVariable("NUGET_HTTP_CACHE_PATH", Path.Combine(_workspace.Path, "http-cache")) 104.WithEnvironmentVariable("DOTNET_CLI_HOME", _workspace.Path)
TemplateManifest\TemplateRestorePlanTests.cs (2)
196var path = Path.Combine(workspace.Path, "normalized.proj"); 198var script = Path.Combine(workspace.Path, "evaluate.ps1");
tests\Shared\TemporaryWorkspace.cs (1)
218var aspireDir = IOPath.Combine(workspace.Path, ".aspire");
TestTriggerMap\GraphAffectedProjectsTests.cs (14)
318var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 320return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath).AffectedProjects; 325var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 327return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath); 333_workspace.Path, 334System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), 348var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 440var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar)); 445return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: baseSha, to: "HEAD", changedFilesPath: null).AffectedProjects; 450var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar)); 475private string Git(params string[] args) => GitCli.Run(_workspace.Path, args);
TestTriggerMap\PathRuleExclusionTests.cs (3)
21var path = Path.Combine(_workspace.Path, "map.yml"); 50var path = Path.Combine(_workspace.Path, "map.yml"); 73var path = Path.Combine(_workspace.Path, "map.yml");
TestTriggerMap\PrComparisonBaseTests.cs (40)
32checkout = Path.Combine(workspace.Path, "checkout"); 33GitCli.Run(workspace.Path, "clone", "--no-local", new Uri(repo).AbsoluteUri, checkout); 55var (oldBase, currentBase, head, merge) = CreateHistory(workspace.Path, mergeBaseIntoPr: true); 61expectedMerge = GitCli.Run(workspace.Path, "rev-parse", $"{head}^"); 62GitCli.Run(workspace.Path, "checkout", "--detach", expectedMerge); 66expectedMerge = GitCli.Run(workspace.Path, "commit-tree", $"{merge}^{{tree}}", 68GitCli.Run(workspace.Path, "checkout", "--detach", expectedMerge); 71var result = await Resolve(workspace.Path, oldBase, expectedHead, "pull_request", expectedMerge, expectedRef); 133var checkout = Path.Combine(workspace.Path, "checkout"); 134GitCli.Run(workspace.Path, "clone", "--depth=1", "--no-local", new Uri(repo).AbsoluteUri, checkout); 171var checkout = Path.Combine(workspace.Path, "checkout"); 172GitCli.Run(workspace.Path, "clone", "--depth=1", "--no-local", new Uri(repo).AbsoluteUri, checkout); 226var (oldBase, _, head, _) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 227GitCli.Run(workspace.Path, "checkout", "--detach", head); 229var result = await Resolve(workspace.Path, oldBase, head, "workflow_dispatch", head, "refs/heads/topic"); 233Assert.Equal(new[] { "pr-only.txt" }, ChangedFiles(workspace.Path, result.StandardOutput.Trim(), head)); 241var (_, currentBase, _, _) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 242GitCli.Run(workspace.Path, "checkout", "--orphan", "unrelated"); 243GitCli.Run(workspace.Path, "rm", "-rf", "."); 244var head = CommitFile(workspace.Path, "unrelated.txt"); 245GitCli.Run(workspace.Path, "checkout", "main"); 246GitCli.Run(workspace.Path, "merge", "--no-ff", "--allow-unrelated-histories", "unrelated", "-m", "Synthetic merge"); 247var merge = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 248GitCli.Run(workspace.Path, "remote", "add", "origin", workspace.Path); 250var result = await Resolve(workspace.Path, currentBase, head, "pull_request", merge, "refs/pull/42/merge"); 262var (_, _, head, merge) = CreateHistory(workspace.Path, mergeBaseIntoPr: false); 263GitCli.Run(workspace.Path, "remote", "add", "origin", workspace.Path); 265var result = await Resolve(workspace.Path, new string('1', 40), head, "workflow_dispatch", merge, "refs/heads/main"); 277var (_, _, _, originalMerge) = CreateHistory(workspace.Path, mergeBaseIntoPr: true); 278GitCli.Run(workspace.Path, "checkout", "topic"); 279GitCli.Run(workspace.Path, "mv", "root.txt", "renamed.txt"); 280GitCli.Run(workspace.Path, "commit", "-m", "Rename PR file"); 281var head = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 282GitCli.Run(workspace.Path, "checkout", "main"); 283GitCli.Run(workspace.Path, "merge", "--no-ff", "topic", "-m", "Synthetic merge"); 284var merge = GitCli.Run(workspace.Path, "rev-parse", "HEAD"); 286var result = await Resolve(workspace.Path, originalMerge, head, "pull_request", merge, "refs/pull/42/merge"); 290Assert.Equal(new[] { "renamed.txt", "root.txt" }, ChangedFiles(workspace.Path, result.StandardOutput.Trim(), head));
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
119return workspace.Path;
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (6)
288public string Path => _workspace.Path; 381var changed = System.IO.Path.Combine(_workspace.Path, "changed.txt"); 402public string Git(params string[] args) => GitCli.Run(_workspace.Path, args); 412var outputPath = System.IO.Path.Combine(_workspace.Path, "output"); 414Environment.SetEnvironmentVariable("GITHUB_STEP_SUMMARY", System.IO.Path.Combine(_workspace.Path, "summary")); 445var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
TypeScriptApiCompat\TypeScriptApiCompatTests.cs (18)
126var baselineRoot = Path.Combine(workspace.Path, "baseline"); 127var currentRoot = Path.Combine(workspace.Path, "current"); 197var suppressionPath = Path.Combine(workspace.Path, "Pkg.tscompat.suppression.txt"); 210var suppressions = ApiCompatSuppressionLoader.Load(workspace.Path); 227var currentSuppressionPath = Path.Combine(workspace.Path, "current", "Pkg.tscompat.suppression.txt"); 228var baselineSuppressionPath = Path.Combine(workspace.Path, "baseline", "Pkg.tscompat.suppression.txt"); 240var currentSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "current")); 241var baselineSuppressions = ApiCompatSuppressionLoader.Load(Path.Combine(workspace.Path, "baseline")); 253var baselineRoot = Path.Combine(workspace.Path, "baseline"); 254var currentRoot = Path.Combine(workspace.Path, "current"); 255var reportPath = Path.Combine(workspace.Path, "report.md"); 273workspace.Path, 289var baselineRoot = Path.Combine(workspace.Path, "baseline"); 290var currentRoot = Path.Combine(workspace.Path, "current"); 291var reportPath = Path.Combine(workspace.Path, "report.md"); 292var excludedPackagesPath = Path.Combine(workspace.Path, "excluded-packages.txt"); 293var suppressionPath = Path.Combine(workspace.Path, "Excluded.tscompat.suppression.txt"); 312workspace.Path,
WorkflowScripts\AnalyzeCiFailureReportTemplatesTests.cs (2)
74var inputs = Path.Combine(workspace.Path, "inputs.json"); 123workspace.Path,
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
3596string inputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\AutoSecWorkflowTests.cs (2)
4792var requestPath = Path.Combine(workspace.Path, "request.json"); 4793var resultPath = Path.Combine(workspace.Path, "result.json");
WorkflowScripts\BackportWorkflowTests.cs (1)
19var scriptPath = Path.Combine(workspace.Path, "cleanup-script.js");
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (1)
270var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\CreatePullRequestActionTests.cs (2)
27var disabled = await RunCreatePrScriptAsync(script, workspace.Path, updateMetadata: false, title, body); 33var enabled = await RunCreatePrScriptAsync(script, workspace.Path, updateMetadata: true, title, body);
WorkflowScripts\DeploymentTestScriptTests.cs (5)
31var outputFile = Path.Combine(_workspace.Path, "github-output.txt"); 32var argumentsFile = Path.Combine(_workspace.Path, "dotnet-arguments.txt"); 33var fakeDotnetScript = Path.Combine(_workspace.Path, "dotnet.sh"); 42var resultsDirectory = Path.Combine(_workspace.Path, "test results"); 96process.StartInfo.WorkingDirectory = _workspace.Path;
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (23)
246var changelogPath = Path.Combine(_workspace.Path, "extension", "CHANGELOG.md"); 253=> await RunGateScriptAsync(_workspace.Path, environment); 291await InitializeGitRepositoryAsync(_workspace.Path); 293await WritePackageJsonAsync(_workspace.Path, "1.98.0"); 294await WriteChangelogAsync(_workspace.Path, """ 300await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "baseline.txt"), "baseline"); 301await CommitAllAsync(_workspace.Path, "Create baseline changelog"); 305_workspace.Path, 317await CommitAllAsync(_workspace.Path, "Finalize prior release changelog"); 319await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "feature.txt"), "feature-one"); 320await CommitAllAsync(_workspace.Path, "Add extension feature"); 323await RunGitAsync(_workspace.Path, "checkout", "-b", "extension-release/v1.99.0"); 325await WritePackageJsonAsync(_workspace.Path, "1.99.0"); 326await WriteChangelogAsync(_workspace.Path, $$""" 340await CommitAllAsync(_workspace.Path, "Prepare release branch changelog"); 342await RunGitAsync(_workspace.Path, "checkout", "main"); 346await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "late-main.txt"), "late extension change"); 350await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("docs", "late-main.md"), "non-extension main change"); 353await CommitAllAsync(_workspace.Path, "Advance main"); 354var baseSha = await GetHeadShaAsync(_workspace.Path); 356await RunGitAsync(_workspace.Path, "checkout", "extension-release/v1.99.0"); 359_workspace.Path, 409=> await GetHeadShaAsync(_workspace.Path);
WorkflowScripts\FilterNonBlockingTestArtifactsTests.cs (4)
22var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 54var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 80var allLogsPath = Path.Combine(workspace.Path, "all-logs"); 106var allLogsPath = Path.Combine(workspace.Path, "all-logs");
WorkflowScripts\LabelerPredictPullsWorkflowTests.cs (2)
133var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json"); 134var outputPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.result.json");
WorkflowScripts\LintHandwrittenWorkflowsScriptTests.cs (4)
74private string ArgumentsPath => Path.Combine(_workspace.Path, "actionlint-arguments.txt"); 80var path = Path.Combine(_workspace.Path, "repo", relativePath); 92var binDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, "bin")).FullName; 106Path.Combine(_workspace.Path, "repo"),
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
392var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\MonitorScheduledWorkflowsTests.cs (1)
245var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
284var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportCiFailureTests.cs (1)
81var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
290var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportPipelineFailureTests.cs (1)
139var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\ReportSpecializedTestFailuresTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
228var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\TestReportReaderTests.cs (6)
15var file = Path.Combine(workspace.Path, "mocha.json"); 60var file = Path.Combine(workspace.Path, "mocha.json"); 70var file = Path.Combine(workspace.Path, "mocha.json"); 85var file = Path.Combine(workspace.Path, "results.trx"); 121var file = Path.Combine(workspace.Path, "results.trx"); 133var file = Path.Combine(workspace.Path, "results.trx");
WorkflowScripts\TrackingIssueTests.cs (1)
286var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");
WorkflowScripts\UpdateActionlintTests.cs (5)
264var pinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, ".github")); 269command.WithWorkingDirectory(_workspace.Path); 292var pinDirectory = Directory.CreateDirectory(Path.Combine(_workspace.Path, ".github")); 298command.WithWorkingDirectory(_workspace.Path); 344var requestPath = Path.Combine(_workspace.Path, $"{Guid.NewGuid():N}.json");