Search code examples
tfsvisual-studio-2015code-coveragetfs-2015alm

TFS 2015 Code Coverage is not displaying


I'm using TFS 2015 (Update 2.1) build process and everything is working as expected except the code coverage part.

Build with VS Test

enter image description here

(Code coverage enabled)

After successful build:

enter image description here

(testcase executed without code coverage)

When I checked log, this is what I found:

Warning: Diagnostic data adapter message: Could not find diagnostic data adapter 'Code Coverage'. Make sure diagnostic data adapter is installed and try again.

I have tried

  1. De-attaching-attaching collection
  2. Re-installed Agent
  3. Have included .runsettings file

but no luck.


Solution

  • Install Visual Studio Enterprise on your build server, assuming you have appropriate licensing. Code coverage is an Enterprise feature.