Reputation: 1442
I have a few C# integration tests that are run every night by Team City and the NUnit test runner. It would be very helpful if when a test fails the Trace logs could be made visible within the Team City build log.
Is this possible?
Upvotes: 6
Views: 2619
Reputation: 61479
Just do
Console.WriteLine("")
It will appear in your TeamCity build log, might be not the best solution in the long run but for temporary test debugging this should suffice.
Upvotes: 0
Reputation: 5479
All console output is shown in the build log. Not quite sure if Trace-logs are displayed there (it might even be configurable somewhere?)
Click on a build, go to the tests tab. To the right of all tests there is a small arrow, click it and hit "Show in build log", and you'll be taken directly to the output of that test. Usually there's not a lot of interesting stuff for a successful test. Failed tests have their own view with all the output you normally get in your test runner.
Upvotes: 6