TUnit icon indicating copy to clipboard operation
TUnit copied to clipboard

TestServer & Logs

Open jchannon opened this issue 7 months ago • 2 comments
trafficstars

Hi!

I'm looking at moving Carter to TUnit and I've spotted in some of my tests I don't get the HTTP logs by default. I looked at implementing my own ILogger to debug and ASP.NET is sending the logs through but I don't see anything in the output in Rider. Here's an example if you want to try and repo it - https://github.com/CarterCommunity/Carter/blob/TUnit/test/Carter.Tests/ExtensionTests.cs#L30

Side Note: In my own ILogger implementation I see that TestContext.Current is null

jchannon avatar Apr 21 '25 17:04 jchannon