Unable to display log messages in MbUnit + TestDriven

I cannot print log messages to the console through the Common.Logging environment in MbUnit tests run by TestDriven. I'm not sure if this is due to the way Gallio is registered in TestDriven. I followed the steps in this post ( Register Gallio zip installation with TestDriven.Net ) to manually register Gallio with TestDriven because I do not have administrator privileges for the machine.

The same logging mechanism worked in NUnit + TestDriven.

+5
source share
2 answers

If you really want to write messages in the Output panel in Visual Studio when running TestDriven.NET, you can use Gallio.Framework.DiagnosticLog:

DiagnosticLog.WriteLine("Test message");

However, the log messages will not be associated with the tests and will be displayed as a separate section of the Gallio report. Therefore, in most cases, you are better off using Gallio.Framework.TestLogor System.Consoleand clicking the Test Report link to see the results mentioned by Graham.

+6
source

The console is displayed in the test report (blue link at the end of the TD.NET run), and not displayed in the console. Is there anything there?

0
source

All Articles