Skip to content

Commit 749dd16

Browse files
Copilotdavidfowl
andauthored
Enable test logging in DistributedApplicationPipelineTests (#13072)
* Initial plan * Use WithTestAndResourceLogging and real logger in DistributedApplicationPipelineTests Co-authored-by: davidfowl <[email protected]> * Use extension method WithTestAndResourceLogging instead of explicit args Co-authored-by: davidfowl <[email protected]> * Add TestPipelineActivityReporter for test logging to ITestOutputHelper/ILogger Co-authored-by: davidfowl <[email protected]> * Simplify TestPipelineActivityReporter to only use ILogger Co-authored-by: davidfowl <[email protected]> * Simplify TestPipelineActivityReporter DI registration with generic ILogger Co-authored-by: davidfowl <[email protected]> * Add TestPipelineActivityReporter to all DistributedApplicationPipelineTests Co-authored-by: davidfowl <[email protected]> * Add DefaultTimeout() to all pipeline.ExecuteAsync calls to prevent hanging tests Co-authored-by: davidfowl <[email protected]> * Fix infinite recursion in TestPipelineActivityReporter by removing logger calls Co-authored-by: davidfowl <[email protected]> * Change TestPipelineActivityReporter to use ITestOutputHelper instead of ILogger Co-authored-by: davidfowl <[email protected]> * Add WriteLine calls to TestPipelineActivityReporter methods for test output Co-authored-by: davidfowl <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: davidfowl <[email protected]>
1 parent 7dbef0d commit 749dd16

File tree

3 files changed

+450
-316
lines changed

3 files changed

+450
-316
lines changed

tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<Compile Include="$(TestsSharedDir)AsyncTestHelpers.cs" Link="shared/AsyncTestHelpers.cs" />
3939
<Compile Include="$(TestsSharedDir)TempDirectory.cs" Link="shared/TempDirectory.cs" />
4040
<Compile Include="$(TestsSharedDir)TestInteractionService.cs" LinkBase="shared" />
41+
<Compile Include="$(TestsSharedDir)TestPipelineActivityReporter.cs" Link="shared/TestPipelineActivityReporter.cs" />
4142
<Compile Include="$(TestsSharedDir)TestModuleInitializer.cs" Link="shared/TestModuleInitalizer.cs" />
4243
<Compile Include="$(TestsSharedDir)DistributedApplicationTestingBuilderExtensions.cs" Link="shared/DistributedApplicationTestingBuilderExtensions.cs" />
4344
<Compile Include="$(RepoRoot)src\Aspire.Hosting.PostgreSQL\PostgresContainerImageTags.cs" />

0 commit comments

Comments
 (0)