TFS 2015 Code Coverage is not displaying

↘锁芯ラ 提交于 2019-12-10 21:13:52

问题


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

(Code coverage enabled)

After successful build:

(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.


回答1:


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




回答2:


You can also get the coverage report without having to have Visual Studio Enterprise Installed. But you would need "Visual Studio Test Agent". You can download it here.



来源:https://stackoverflow.com/questions/37288239/tfs-2015-code-coverage-is-not-displaying

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!