Using ReSharper, how to show debug output during a long-running unit test?

后端 未结 7 1184
误落风尘
误落风尘 2020-12-28 13:06

I\'m using xUnit with the ReSharper test runner and the xUnitContrib resharper plugin.

When I have a long-running test, I\'d like to be able to output some progress

7条回答
  •  再見小時候
    2020-12-28 13:39

    ReSharper somehow removed the default listener in unit tests. To display text in the Output window, just add this line:

    Debug.Listeners.Add(new DefaultTraceListener());
    

提交回复
热议问题