1

Closed

Show debug output DURING test.

description

Output from Debug.WriteLine, Trace.WriteLine, and Console.WriteLine don't appear in the test output window until the test has completed. This makes it difficult to show any status for long-running tests.

See: http://stackoverflow.com/q/15092438/634824

NUnit does this, so it is possible in ReSharper.
Closed Mar 8, 2013 at 2:15 PM by mattellis
Can't be done for xunit v1, will be part of the xunit v2 API.

comments

BradWilson wrote Feb 27, 2013 at 1:45 AM

This is a limitation in xUnit.net, not the Resharper adapter.

We will be addressing this in v2 of xUnit.net.

mj1856 wrote Feb 27, 2013 at 1:56 PM

Thanks.

cjwoolard wrote Mar 7, 2013 at 11:40 PM

This is a fairly significant limitation for our us (to the point where we have to hold off using xunit until it's resolved, which is unfortunate). I was curious if there were any plans to correct the issue in near future?

Thank you.

cjwoolard wrote Oct 13, 2013 at 11:19 PM

I tried updating to the latest XUnit v2 build (xunit.2.0.0-alpha-build2521) but I'm still not seeing output for either Console.WriteLine or Debug.WriteLine, are there any additional steps I need to take to enable output?

Thank you.

mattellis wrote Oct 14, 2013 at 11:09 AM

@cjwoolard xunit2 isn't going to support capturing of test output, due to parallelisation of tests - you don't know where the output is coming from. See the end of this thread on the xunit codeplex site for more: https://xunit.codeplex.com/discussions/390453

Micah071381 wrote Aug 23 at 12:54 AM

That thread is gone, happen to have a new link?

mattellis wrote Aug 24 at 2:47 PM

Looks like it's gone gone gone. The closest I can find is this, but it's not the same thread: https://github.com/xunit/xunit/issues/171