This is a quick walkthrough of how to enable Code coverage from a build definition in TFS.
a. Create a build definition.
b. In Tests section, click on the highlighted ellipses button as below:
c. Below dialog box will popup, click on the edit button highlighted below:
d. Then ensure the, “Enabled Code Coverage” option from here as highlighted:
Note: you can enable code coverage as mentioned below, but it does not work sometime, hence this blog.
Content By: Deepak Mittal