VSTests - Could not find diagnostic data adapter &

2020-07-06 06:56发布

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

2条回答
老娘就宠你
2楼-- · 2020-07-06 07:24

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

查看更多
We Are One
3楼-- · 2020-07-06 07:50

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

查看更多
登录 后发表回答