VSTests - Could not find diagnostic code adapter "Code Coverage"

I am new to VS Code Coverage and I am trying to use the VSTests tool from the command line (on 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 tests were run and passed, the *.coverage file was not found anywhere.

Why?

Note. I am using Visual Studio 2015 Enterprise

+6
source share
2 answers

Not sure if you understood it or not, 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 ( https://www.visualstudio.com/downloads/ )

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

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

+4
source

This code coverage tool only comes with MS Visual Studio Enterprise and Ultimate. so install it and it will be fixed.

+1
source

All Articles