How can I get Inner Exception text from Test Results run on TFS 2010

I have some MSTest unit tests that are running just fine on my machine but are failing in my autobuild.

The error gives a generic fault exception then says "See the inner exception for details".

Normally I would just run the test then examine the inner exception. But it is working fine on my machine.

Is there a way to tell the tests to record the inner exception test too? Or do I have to log on to my build machine and try to run the tests from there? (Not really a great solution in my opinion.)

Answers


I'm not aware of any method to get the exception after a test has failed.

You could always use a logger to log the exceptions that occur and write them to a file or mail them to you so you get all the details you need.

Or you could (temporarily) wrap your unit test in a try/catch -> throw and write the InnerException to your test outcome.


Need Your Help

What is the most elegant way to view a multipage PDF in iOS application?

iphone ios pdf

I am stuck in a predicament whereby I hope someone can help me.

How is Linux CRunTime library handled compared to Microsoft

c++ linux crt

I've been having a lot of conceptual issues with Microsoft's CRT. For any project you have to compile all required libraries to link against the same version of the CRT.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.