WhiskerBiscuit
WhiskerBiscuit

Reputation: 5157

How do I see output from UnitTests in VS2013?

I'm using XUnit, and in both the Visual Studio Test Explorer window and the Resharper Unit Test runner window, I'm no longer seeing the "output" hyperlink that would show the contents of WriteLine commands.

Is there a setting in the IDE that I need to change?

Upvotes: 1

Views: 26

Answers (1)

citizenmatt
citizenmatt

Reputation: 18573

This is a change in xunit2. It no longer captures output from Console.WriteLine, etc. This is because it now runs tests in parallel, in multiple threads, and there's no way of knowing what test the output comes from. It is still possible to capture output, but you need to use xunit's ITestOutputHelper in order to do so. See the xunit docs for more details.

Upvotes: 2

Related Questions