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