VSTests - Could not find diagnostic data adapter 'Code Coverage'

非 Y 不嫁゛ 提交于 2019-12-05 19:02:34

问题


I'm new to VS Code Coverage, and I'm trying to use the VSTests tool from the command line (in windows). But i get this error.

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

Although the tests ran and passed, the *.coverage file is nowhere to be found.

Why?

Note: I'm using Visual Studio 2015 Enterprise


回答1:


Not sure if you figured this out or not yet but I found the following instructions:

Download Agents for Microsoft Visual Studio 2015 Update 2 - Click on "Tools for Visual Studio 2015" and then select "Agents for Visual Studio 2015" from the left navigation bar from (https://www.visualstudio.com/downloads/)

You will see code coverage files along with a bunch of others installed to Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\DataCollectors

Original source: https://www.visualstudio.com/en-us/docs/test/lab-management/test-machines/install-configure-test-agents




回答2:


this code coverage tool only ships with MS Visual Studio Enterprise and Ultimate edition. so install it and it will be fix.



来源:https://stackoverflow.com/questions/37834219/vstests-could-not-find-diagnostic-data-adapter-code-coverage

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