How to grab Unit Tests' STDOUT/ERR (or log4net output) in TC build log?

Hi,

Developers occasionally need to see debugging output in TC build log, from statements like these in their unit tests...

CfgLogger.LogInfo("Some informative message");

...or...

Console.WriteLine("Should never get here");

These are not showing up in TC build logs. Can you suggest strategies for propagating unit-test debugging output to the build log?

Thanks!
-chris

1 comment

Hello Chris,

NUnit runner should capture all failed tests' output/error and send it to
the server.
The information should be shown in the TeamCity web on the failed test.

Does log4net is configured for tests environment to log all messages to
output/error?

Does it shown? Does it cover the problem?

Thanks!


--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

Developers occasionally need to see debugging output in TC build log,
from statements like these in their unit tests...

CfgLogger.LogInfo("Some informative message");

..or...

Console.WriteLine("Should never get here");

These are not showing up in TC build logs. Can you suggest strategies
for propagating unit-test debugging output to the build log?

Thanks!
-chris



0

Please sign in to leave a comment.