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])
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,
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\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\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");
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")
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\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));
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\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);