You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use TestContext.Progress.WriteLine("my message") in tests (using Xamarin.UITest, if it matters), but TestContext.Progress output doesn't appear when running tests in Visual Studio or Rider.
In Visual Studio, I tried running tests using both the ReSharper test runner and Visual Studio's built-in one, but got the same result - no output in the test output window.
If I run tests from the command line (dotnet test), then TestContext.Progress appears as it is generated, as expected.
Note that TestContext.Out and TestContext.Error work in all cases as expected.
Ach, you're right, it is displayed there in VS. Annoyingly, I'm sure I've made this mistake before!
It really isn't displayed in Rider though - it seems there's some secret-squirrel way to enable it, but you need to start Rider in "internal mode" to make the setting available.
I'm trying to use
TestContext.Progress.WriteLine("my message")
in tests (using Xamarin.UITest, if it matters), butTestContext.Progress
output doesn't appear when running tests in Visual Studio or Rider.In Visual Studio, I tried running tests using both the ReSharper test runner and Visual Studio's built-in one, but got the same result - no output in the test output window.
If I run tests from the command line (
dotnet test
), thenTestContext.Progress
appears as it is generated, as expected.Note that
TestContext.Out
andTestContext.Error
work in all cases as expected.csproj snippet:
The text was updated successfully, but these errors were encountered: