Progress bar in unit tests

I have a very long unit test job and need some feedback and progression indication. I've tried using Debug.Writelline (), the corresponding console and trace methods, but I can't get the result from my test.

Can anyone please help? I am using Visual Studio 2012, xUnit and Resharper. There are many articles on the internet about this, but none of them solve the problem.

Thank you, m

+3


source to share


2 answers


You should split the test if you can in many small tests, unit testing tools are set up to show the progress of a suite of tests rather than show the progress of one long test, so they work best with batches of small trials. It is considered bad practice to have lengthy unit tests as they tend to be unmanageable and when they break it is difficult to figure out how to fix them.



+2


source


xunit.net does not support writing output as the test progresses. Instead, the output is dumped and displayed at the end of each test. This is exactly how the xunit API works.



+1


source







All Articles