From d7902d215aba596a42b7c2e11e3483bb4067e674 Mon Sep 17 00:00:00 2001 From: "Dylan R. E. Moonfire" Date: Fri, 10 Sep 2021 12:58:00 -0500 Subject: [PATCH] fix: test output should go to the Xunit output --- src/MfGames.TestSetup/MfGames.TestSetup.csproj | 2 +- src/MfGames.TestSetup/TestBase.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MfGames.TestSetup/MfGames.TestSetup.csproj b/src/MfGames.TestSetup/MfGames.TestSetup.csproj index ec584a3..c13e019 100644 --- a/src/MfGames.TestSetup/MfGames.TestSetup.csproj +++ b/src/MfGames.TestSetup/MfGames.TestSetup.csproj @@ -25,7 +25,7 @@ - + diff --git a/src/MfGames.TestSetup/TestBase.cs b/src/MfGames.TestSetup/TestBase.cs index dc1a381..b19590b 100644 --- a/src/MfGames.TestSetup/TestBase.cs +++ b/src/MfGames.TestSetup/TestBase.cs @@ -23,7 +23,8 @@ namespace MfGames.TestSetup .Enrich.WithExceptionDetails() .Enrich.FromLogContext() .MinimumLevel.Is(LogEventLevel.Debug) - .WriteTo.Console( + .WriteTo.TestOutput( + output, outputTemplate: "[{Level:u3}] {Message}{NewLine}{Exception}") .CreateLogger();