Getting Test Results in Visual Studio Team Services (VSTS)

Important note: These directions are for testing desktop unit test assemblies only. In particular, these directions will not work for .NET Core.

Referencing the Visual Studio test runner

Configure VSTS

These instructions are written for Version 1.* of the Visual Studio Test task. You may need to change the version as it defaults to Version 2.* or whichever is latest.

Locate test assemblies

Enable Code Coverage (optional)

Viewing the results

After a successful build, the test results are available on the main view of the build. It should look something like this:


Copyright © .NET Foundation. Contributions welcomed at