Sean
Sean

Reputation: 969

How to debug Visual Studio Team Services unit tests

In my team, Visual Studio Team Services (formerly Visual Studio Online / Team Foundation Service) is configured to automatically build the solution and run all the unit tests of the solution, at each check-in.

There is a test that succeeds in my local Visual Studio but not in Team Services: how can i do to have more information about the test that failed? Is it possible to manually run the test in Team Services?

Upvotes: 5

Views: 1801

Answers (1)

Joe Wilson
Joe Wilson

Reputation: 5671

I had the same issue with intermittently failing tests. Visual Studio Team Services says the tests failed, but not why - not on the build's Summary, Log, or Diagnostics tabs, and not when you "Download all logs as zip". However, you can get this information inside Visual Studio.

In Visual Studio, go to the menu View > Team Explorer. Click Builds. You should see a list of recent builds. Double click the failed build. You can now expand the failing tests and see why they failed.

Upvotes: 6

Related Questions