1 write to OutputPath
Aspire.Hosting (1)
TestResourceBuilderExtensions.cs (1)
97OutputPath = resourceOutputPath
53 references to OutputPath
Aspire.Hosting (4)
Cli\TestRunCoordinator.cs (3)
255var configured = annotation is { TestingContext: not null, OutputPath: not null, Collector: not null }; 259OutputPath = annotation?.OutputPath, 264if (annotation is not { TestingContext: { } testingContext, OutputPath: { } outputPath, Collector: { } collector })
TestResourceBuilderExtensions.cs (1)
80var resourceOutputPath = annotation?.OutputPath;
Aspire.Hosting.Dotnet.Tests (14)
MsTestCollectorTests.cs (8)
147var context = new ResourceTestingContext(options.TestingContext!, "tests", options.OutputPath!, 181Directory.CreateSymbolicLink(Path.Combine(link == "nested-source" ? source : annotation.OutputPath!, "nested"), external); 188var context = new ResourceTestingContext(annotation.TestingContext!, "tests", annotation.OutputPath!, 212var displaced = options.OutputPath! + "-original"; 213Directory.Move(options.OutputPath!, displaced); 216Directory.CreateSymbolicLink(options.OutputPath!, targetDirectory); 222var context = new ResourceTestingContext(options.TestingContext!, "tests", options.OutputPath!, 331return Path.Combine(resource.Resource.Annotations.OfType<TestingAnnotation>().Single().OutputPath!, "results.trx");
MsTestResourceTests.cs (6)
71Assert.True(Directory.Exists(testing.OutputPath)); 74Assert.NotEqual(testing.OutputPath, reportDirectory); 80Assert.Null(testing.OutputPath); 151Assert.Equal(original.OutputPath, replacement.OutputPath); 180Assert.Null(annotation.OutputPath);
Aspire.Hosting.Tests (35)
Cli\TestingCollectorTests.cs (30)
66Assert.Equal(Path.Combine(builder.Configuration[KnownConfigNames.TestOutputPath]!, "late"), annotation.OutputPath); 67Assert.True(Directory.Exists(annotation.OutputPath)); 187Assert.Null(annotation.OutputPath); 211Assert.True(Directory.Exists(annotation.OutputPath)); 217Assert.Equal(annotation.OutputPath, context.OutputPath); 306await File.WriteAllTextAsync(Path.Combine(first.OutputPath!, "result.txt"), "artifact"); 310Assert.Equal(first.OutputPath, context.OutputPath); 320Assert.Equal(first.OutputPath, replacement.OutputPath); 321Assert.Equal(first.OutputPath, Assert.Single(Directory.GetDirectories( 358Assert.Equal(first.OutputPath, replacement.OutputPath); 360Assert.Equal(first.OutputPath, Assert.Single(Directory.GetDirectories( 372Assert.Equal(("notConfigured", 0, replacement.OutputPath), (collection.Status, collection.CollectorCount, collection.OutputPath)); 396Assert.Null(replacement.OutputPath); 703var outputPath = annotation.OutputPath; 709Assert.Equal(outputPath, annotation.OutputPath); 760Assert.Equal(Path.Combine(first.TestingContext!.OutputPath, "first"), first.OutputPath); 761Assert.Equal(Path.Combine(second.TestingContext!.OutputPath, "second"), second.OutputPath); 762Assert.NotEqual(first.OutputPath, second.OutputPath); 764Assert.True(Directory.Exists(first.OutputPath)); 765Assert.True(Directory.Exists(second.OutputPath)); 769Assert.Equal(mode, File.GetUnixFileMode(first.OutputPath!)); 770Assert.Equal(mode, File.GetUnixFileMode(second.OutputPath!)); 799Assert.Equal(Path.Combine(runPath, "tests"), annotation.OutputPath); 803File.GetUnixFileMode(annotation.OutputPath!)); 805Assert.Empty(Directory.GetFileSystemEntries(annotation.OutputPath!)); 903return Assert.Single(resource.Resource.Annotations.OfType<TestingAnnotation>()).OutputPath!; 941Assert.Null(annotation.OutputPath);
Cli\TestRunStreamingTests.cs (5)
171Assert.Equal(first.OutputPath, annotation.OutputPath); 175Assert.Equal(Path.Combine(path, "tests"), annotation.OutputPath); 176Assert.True(Directory.Exists(annotation.OutputPath)); 180Assert.Null(annotation.OutputPath);