Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using Aspire.Components.Common.TestUtilities;
using Microsoft.Extensions.Logging;

namespace Aspire.Hosting.Utils;

Expand Down Expand Up @@ -53,6 +54,19 @@ private static IDistributedApplicationTestingBuilder CreateCore(string[] args, A
// Discussion: https://github.com/dotnet/aspire/pull/7335/files#r1936799460
builder.Services.ConfigureHttpClientDefaults(http => http.AddStandardResilienceHandler());

builder.Services.AddLogging(builder =>
{
if (testOutputHelper is not null)
builder.AddXUnit(testOutputHelper);
else
builder.AddXUnit();

if (Environment.GetEnvironmentVariable("RUNNER_DEBUG") is not null && Environment.GetEnvironmentVariable("RUNNER_DEBUG") == "1")
builder.SetMinimumLevel(LogLevel.Trace);
else
builder.SetMinimumLevel(LogLevel.Information);
});
Comment on lines +57 to +68

builder.WithTempAspireStore();

return builder;
Expand Down
Loading