Share via


Enabling Code coverage from build definition in TFS

This is a quick walkthrough of how to enable Code coverage from a build definition in TFS.

Environment:

TFS 2013.4

Steps:

a. Create a build definition.

b. In Tests section, click on the highlighted ellipses button as below:

clip_image001

c. Below dialog box will popup, click on the edit button highlighted below:

clip_image003

d. Then ensure the, “Enabled Code Coverage” option from here as highlighted:

clip_image005

Note: you can enable code coverage as mentioned below, but it does not work sometime, hence  this blog.

clip_image006

Content By: Deepak Mittal