I'm having some problems while integrating TC with my custom test runner, in case of failed tests. I'm using the testFailed message, but I'm not able to see the error message (with the stack trace) in the Tests tab. Also, it reports all the tests as passed. So, it seems that the testFailed message is ignored by TC.
The output of a failing test, taken from the full build log, is something like that:
[17:04:49]: [MyTest] ##teamcity[testFailed name='MyFixture.MyTest' message='Test has failed' details='System.ArgumentNullException: Value cannot be null.
[17:04:49]: [MyTest] Parameter name: key
[17:04:49]: [MyTest] at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
[17:04:49]: [MyTest] at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
[17:04:49]: [MyTest] at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
How can I fix this problem?