VSTests-找不到诊断数据适配器“代码覆盖率" [英] VSTests - Could not find diagnostic data adapter 'Code Coverage'
问题描述
我是VS Code Coverage的新手,我试图从命令行(在Windows中)使用VSTests工具.但是我得到这个错误.
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.
尽管已经运行并通过了测试,但是在任何地方都找不到*.coverage
文件.
Although the tests ran and passed, the *.coverage
file is nowhere to be found.
为什么?
注意:我正在使用Visual Studio 2015 Enterprise
推荐答案
不确定您是否确定了这一点,但我发现了以下说明:
Not sure if you figured this out or not yet but I found the following instructions:
下载Microsoft Visual Studio 2015更新2的代理-单击"Visual Studio 2015的工具",然后从( https://www.visualstudio.com/downloads/)
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/)
您将看到代码覆盖率文件以及一堆其他安装到程序文件(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ PrivateAssemblies \ DataCollectors
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
这篇关于VSTests-找不到诊断数据适配器“代码覆盖率"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!