-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to log to Visual Studio IDE output window #1389
Comments
Not sure I understand ... Or, you can use a TextWriter ...
Here too you should see the emitted text in the Visual Studio Test Explorer's Output link. |
First, I want to log some info to Visual Studio IDE Second, I want to log them during test execution, not debugging. NUnit's own logging is able to do it, logging to Visual Studio IDE This is during NUnit's unit test, where there is no console to write to. Neither is the Thx. |
@suntong there is only one way today (and we don't want any other message to flow in test output window because it will have too many messages in the window which will confuse users Normal Console.WriteLine("") messages wont flow to test window output. but they will flow to output of test case |
it is a nunit test using NUnit.Framework; namespace nunit |
Gotya! Thanks a lot for helping!!! |
Just a simple noob question,
How to log to Visual Studio IDE output window?
I have a NUnit test, and I want to log some info to Visual Studio IDE output window during test execution. I've traced NUnit's own logging (to Visual Studio IDE output) to this project, but I can't make it works myself. E.g., I tried, among many other things,
but none is working for me.
Or, what
IMessageLogger
I should use (that is for Visual Studio IDE output), when initializing my own logger like the following?https://github.com/nunit/nunit3-vs-adapter/blob/d8943d87ecccc097224494f905df287d79f097b3/src/NUnitTestAdapter/NUnitTestAdapter.cs#L121
Please help. Thanks!
The text was updated successfully, but these errors were encountered: