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
but no luck.
Install Visual Studio Enterprise on your build server, assuming you have appropriate licensing. Code coverage is an Enterprise feature.