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)
31var trxPath = Path.Combine(_workspace.Path, "sample.trx");
53var trxPath = Path.Combine(_workspace.Path, "mixed.trx");
60var jsonPath = Path.Combine(_workspace.Path, "failed.json");
81var trxPath = Path.Combine(_workspace.Path, "aborted.trx");
87var jsonPath = Path.Combine(_workspace.Path, "failed.json");
104var trxPath = Path.Combine(_workspace.Path, "allpass.trx");
110var jsonPath = Path.Combine(_workspace.Path, "failed.json");
133var trxDir = Path.Combine(_workspace.Path, "corrupt");
137var jsonPath = Path.Combine(_workspace.Path, "failed.json");
160var trxDir = Path.Combine(_workspace.Path, "partial");
167var jsonPath = Path.Combine(_workspace.Path, "failed.json");
187var trxDir = Path.Combine(_workspace.Path, "partial-with-failure");
194var jsonPath = Path.Combine(_workspace.Path, "failed.json");
216var trxPath = Path.Combine(_workspace.Path, "timestamped.trx");
225var jsonPath = Path.Combine(_workspace.Path, "failed.json");
PowerShellScripts\BuildTestMatrixTests.cs (40)
33var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
42var outputFile = Path.Combine(_workspace.Path, "matrix.json");
63var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
76var outputFile = Path.Combine(_workspace.Path, "matrix.json");
95var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
108var outputFile = Path.Combine(_workspace.Path, "matrix.json");
136var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
149var outputFile = Path.Combine(_workspace.Path, "matrix.json");
172var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
181var outputFile = Path.Combine(_workspace.Path, "matrix.json");
199var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
208var outputFile = Path.Combine(_workspace.Path, "matrix.json");
226var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
241var outputFile = Path.Combine(_workspace.Path, "matrix.json");
260var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
272var outputFile = Path.Combine(_workspace.Path, "matrix.json");
290var emptyArtifactsDir = Path.Combine(_workspace.Path, "empty-artifacts");
293var outputFile = Path.Combine(_workspace.Path, "matrix.json");
310var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
325var outputFile = Path.Combine(_workspace.Path, "matrix.json");
351var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
360var outputFile = Path.Combine(_workspace.Path, "matrix.json");
378var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
387var outputFile = Path.Combine(_workspace.Path, "matrix.json");
406var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
420var outputFile = Path.Combine(_workspace.Path, "matrix.json");
443var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
452var outputFile = Path.Combine(_workspace.Path, "matrix.json");
472var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
480var outputFile = Path.Combine(_workspace.Path, "matrix.json");
498var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
512var outputFile = Path.Combine(_workspace.Path, "matrix.json");
534var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
552var outputFile = Path.Combine(_workspace.Path, "matrix.json");
577var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
585var outputFile = Path.Combine(_workspace.Path, "matrix.json");
612var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
631var outputFile = Path.Combine(_workspace.Path, "matrix.json");
699var artifactsDir = Path.Combine(_workspace.Path, "artifacts");
713var 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");
TestTriggerMap\GraphAffectedProjectsTests.cs (12)
282var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt");
284return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath).AffectedProjects;
289var changedFilesPath = System.IO.Path.Combine(_workspace.Path, "changed.txt");
291return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: null, to: null, changedFilesPath: changedFilesPath);
296var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
387var newFull = System.IO.Path.Combine(_workspace.Path, newRelativePath.Replace('/', System.IO.Path.DirectorySeparatorChar));
392return GraphAffectedProjects.Compute(_workspace.Path, System.IO.Path.Combine(_workspace.Path, "Aspire.slnx"), from: baseSha, to: "HEAD", changedFilesPath: null).AffectedProjects;
397var fullPath = System.IO.Path.Combine(_workspace.Path, relativePath.Replace('\\', System.IO.Path.DirectorySeparatorChar));
422private string Git(params string[] args) => GitCli.Run(_workspace.Path, args);
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)
304var changelogPath = Path.Combine(_workspace.Path, "extension", "CHANGELOG.md");
311=> await RunGateScriptAsync(_workspace.Path, environment);
349await InitializeGitRepositoryAsync(_workspace.Path);
351await WritePackageJsonAsync(_workspace.Path, "1.98.0");
352await WriteChangelogAsync(_workspace.Path, """
358await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "baseline.txt"), "baseline");
359await CommitAllAsync(_workspace.Path, "Create baseline changelog");
363_workspace.Path,
375await CommitAllAsync(_workspace.Path, "Finalize prior release changelog");
377await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "feature.txt"), "feature-one");
378await CommitAllAsync(_workspace.Path, "Add extension feature");
381await RunGitAsync(_workspace.Path, "checkout", "-b", "extension-release/v1.99.0");
383await WritePackageJsonAsync(_workspace.Path, "1.99.0");
384await WriteChangelogAsync(_workspace.Path, $$"""
398await CommitAllAsync(_workspace.Path, "Prepare release branch changelog");
400await RunGitAsync(_workspace.Path, "checkout", "main");
404await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "late-main.txt"), "late extension change");
408await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("docs", "late-main.md"), "non-extension main change");
411await CommitAllAsync(_workspace.Path, "Advance main");
412var baseSha = await GetHeadShaAsync(_workspace.Path);
414await RunGitAsync(_workspace.Path, "checkout", "extension-release/v1.99.0");
417_workspace.Path,
467=> await GetHeadShaAsync(_workspace.Path);