Replies: 1 comment 5 replies
-
|
An a related note, I find that the only way I can prevent these logged messages from appearing in the console is to use Is there a way to get the messages to show up in Test Explorer, and be included in log files, without it appearing in the console log, all by default? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating some tests from xunit to TUnit. I've replaced use of the
ITestOutputHelperin xunit with use of the TUnit logger. In logging information from tests, I get output like this:I was surprised to see any output at all, since I'm logging Info which I expected would be hidden by default. But the real issue is that the logged messages aren't associated at the console with the test id, so these messages aren't nearly as useful. How can I get the console log to include the test name as a header before any messages that would be printed from a test?
I'm not wanting to see the name of every test... just the name of tests that log messages. Arranged such that I can see which test logged which messages.
Beta Was this translation helpful? Give feedback.
All reactions