AndreyTS
AndreyTS

Reputation: 232

How to see test error messages on TFS Hosted

My project is running in TFS Online (visualstudio.com) and at one moment a bunch of tests failed on TFS. Usually in such situations it was possible to reproduce the fail on my local machine, see the errors and fix them. (Well, almost always it just never got to server because of the 'run tests on build' feature).

But this time all the tests work fine on my machine, but some of them fail on TFS. And I need to see the errors of my tests on the server. But it seems there're no place in UI of hosted TFS to show that errors.

Here's what I can see: «98/110 test(s) passed, 12 failed, 0 inconclusive» and the list of the failed tests: «Failed Given_VocabularyGrownEnough_When_AnalyzeGoals_Then_GoalsAchievedAndLessonEnded, Failed When_AnalyzeGoalsAndVocabularyGrownNotEnough_Then_Nothing, ...»

Does anyone know how to dig somewhere into TFS hosted and get the test logs or at least the Assert's error messages?

Upvotes: 4

Views: 1530

Answers (1)

Adam Caviness
Adam Caviness

Reputation: 3484

Visual Studio 2012 & 2013

This is a great question. Team Foundation Server nor VS Team Services (formerly Visual Studio Online or Team Foundation Service) displays these often important exception or assert messages within failed tests in the browser.

Browser Build Summary

Within Visual Studio 2012/2013 you get test result messages.

VisualStudio Build Summary

Visual Studio 2015

In Visual Studio 2015 they have taken away the Build Summary within Visual Studio and now when double clicking a build result in Team Explorer the summary will be opened in a browser. It appears at first glance you can't see the actual test failure message but it is available under TEST -> Runs -> (double click failed test) -> Run Summary -> Test Results.

enter image description here

Upvotes: 1

Related Questions