Trace and Debug Output

Too many times I've found myself adding and removing Console output to my tests. I've added it when I need more information about how an individual test is running. I've removed it when cleaning up the output from running all tests in an assembly. I've found what I think is an effective solution.

I've added support for Trace and Debug output when running individual tests. When running individual tests using the code context menu you'll get to see any Trace, Debug or Console messages. When running all tests in a Solution or Project you won't. You can also use Debug/Trace.Assert for non-terminating assertions. You can see the general idea from the screenshot below.

You can download the latest build here.

No Comments