title: VSTS build agent on local machine doesn't provide code coverage data
body: <p>I have an issue with VSTS build agent as I can't seem to produce code coverage info out of it when I run it locally. The build plan is the default one: get the source, build, execute test assemblies, create build artifact, etc. In the <code>Test assemblies step</code>, the <code>Code coverage enabled</code> checkbox is checked.</p>
  
  <p>When I execute it using the <code>Hosted VS2017</code> agent, the <code>Code coverage</code> tab shows a link to download the result and also the related charts can display that data.</p>
  
  <p>I <a href="https://docs.microsoft.com/en-us/vsts/pipelines/agents/v2-windows?view=vsts" rel="nofollow noreferrer">downloaded and installed</a> the build agent from <code>VSTS main page</code> -- <code>Project settings</code> -- <code>Agent pools</code>. After installation, I queued a build using that. It builds fine, but the <code>Code coverage</code> tab shows the following message:</p>
  
  <blockquote>
    <p>No code coverage data is available.<br>
    Enable code coverage via the test framework used in your build pipeline, such as JUnit, Visual Studio Test, or xUnit.</p>
  </blockquote>
  
  <p>In case it matters, I use <code>xUnit</code>, the <code>xunit.runner.visualstudio</code> package is referenced in the test projects.</p>
  
  <p>My question is: what should I modify in my setup to enable code coverage info for the local build agent?</p>