diff --git a/tests/TUnit.Aspire.Tests.AppHost/Program.cs b/tests/TUnit.Aspire.Tests.AppHost/Program.cs index cf7b5db2c48..978c066f35e 100644 --- a/tests/TUnit.Aspire.Tests.AppHost/Program.cs +++ b/tests/TUnit.Aspire.Tests.AppHost/Program.cs @@ -1,8 +1,14 @@ +using Aspire.Hosting.ApplicationModel; + var builder = DistributedApplication.CreateBuilder(args); builder.AddParameter("my-secret", secret: true); -builder.AddContainer("nginx-no-healthcheck", "nginx"); +// These resources only serve HTTP and export telemetry over HTTP. They do not need +// Aspire to prepare custom CA trust bundles before DCP can start them (#7616). +builder.AddContainer("nginx-no-healthcheck", "nginx") + .WithCertificateTrustScope(CertificateTrustScope.None); builder.AddProject("api-service") - .WithHttpEndpoint(targetPort: 8080); + .WithHttpEndpoint(targetPort: 8080) + .WithCertificateTrustScope(CertificateTrustScope.None); builder.Build().Run(); diff --git a/tests/TUnit.Engine.Tests/InvokableTestBase.cs b/tests/TUnit.Engine.Tests/InvokableTestBase.cs index eda2f5e9e72..61020297457 100644 --- a/tests/TUnit.Engine.Tests/InvokableTestBase.cs +++ b/tests/TUnit.Engine.Tests/InvokableTestBase.cs @@ -189,11 +189,14 @@ private async Task> RunWithFailureLogging(Com $@"Mode: {testMode}", @$"Command Input: {command}", + @$"Process ID: {commandTask.ProcessId}", + @$"Exit Code: {commandResult?.ExitCode.ToString(System.Globalization.CultureInfo.InvariantCulture) ?? "unavailable"}", + @$"Expected TRX: {trxPath}", @$"Error: {commandResult?.StandardError}", @$"Output: {commandResult?.StandardOutput}" Expression: {assertionExpression} - """); + """, e); } return commandTask;