问题
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
- De-attaching-attaching collection
- Re-installed Agent
- Have included .runsettings file
but no luck.
回答1:
Install Visual Studio Enterprise on your build server, assuming you have appropriate licensing. Code coverage is an Enterprise feature.
回答2:
You can also get the coverage report without having to have Visual Studio Enterprise Installed. But you would need "Visual Studio Test Agent". You can download it here.
来源:https://stackoverflow.com/questions/37288239/tfs-2015-code-coverage-is-not-displaying