I'm running an XUnit test-ptoject in VS Code with the .NET Core Test Explorer extension. I'm trying to write output during the tests but nothing is working. I've tried writing output in different ways, but can't see any output anywhere. Has anyone managed to see output in vs code somehow while running tests?
Here is a small example class:
using Xunit;
using Xunit.Abstractions;
using System.Diagnostics;
public class TestClass
{
private ITestOutputHelper _output;
public TestClass(ITestOutputHelper output)
{
_output = output;
}
[Fact]
public void Test2()
{
_output.WriteLine("Hello");
Debug.WriteLine("Hello");
Console.WriteLine("Hello");
}
}