Show output using dotnet core 1.1 and xunit unit tests?

Viewed 937

I've fount creating unit tests a super easy way to try out code in Visual Studio over the years. I was able to get the same type of unit tests to work with .NET core 1.1 in VS 2017 by creating a Visual C#/.NET Core/Unit Test Project (.NET Core) project, then adding xunit and xunit.runner.visualstudio nuget packages.

The only problem is that I no longer see the 'Output' link when the test is run to see what I wrote to the console. I can use Trace.WriteLine from the System.Diagnostics package instead and see the output in the Output window of Visual Studio, but seeing the output associated with each test run is easier and more useful.

Is there a way to get that to display with my setup or is there a different setup I could use?

Edit

@ilya's solution works, but I have to re-write all my tests, removing [TestClass] and replacing [TestMethod] with [Fact], and I can no longer right-click and run a single test method, doing that seems to run all test methods in the class...

1 Answers
Related