MSTest + how can you view Diagnostic info ?

I am trying to find out why a particular test only fails on the build machine, so i sprinkled it with some System.Diagnostics.Debug.WriteLine("I love cheese"); stuff, but i dont see any way to view the output of that in Team City.  Would someone have any ideas of what i could try?

thank you for taking the time :0-)

2 comments

TeamCity parses the MSTest result .trx file. I believe when mstest.exe is running the tests, there is no debugger attached and thus, Diagnostics.Debug is just skipped. Please consider using System.Console.WriteLine instead.

0

Ah, that makes sense, Console.WriteLine works perfectly, thank you very much.

0

Please sign in to leave a comment.