tag:help.appveyor.com,2012-11-13:/discussions/problems/7069-code-coverage-missing-codecoverageexeAppVeyor: Discussion 2018-10-19T08:18:25Ztag:help.appveyor.com,2012-11-13:Comment/429915012017-07-20T20:54:09Z2017-07-20T20:54:09ZCode Coverage (Missing CodeCoverage.exe)<div><p>Hi Bernhard,</p>
<p>Sorry for some delay, we were very busy with recent <a href="https://appveyor.statuspage.io/incidents/m2vdvw39kdk8">nuget download issue</a>.</p>
<p>We have <code>Agents for Visual Studio 2017</code> installed in addition to Visual Studio itself. Please add the following commands at some point before build, to use <code>vstest.console.exe</code> from <code>Agents for Visual Studio 2017</code>:</p>
<pre>
<code>set path=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow;%path%
copy "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions\appveyor.*" "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions" /y</code>
</pre>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/429915012017-08-15T12:55:53Z2017-08-15T12:55:54ZCode Coverage (Missing CodeCoverage.exe)<div><p>Hi,</p>
<p>similarly to the original post. We recently switched to 2017 image.<br>
We are able to pick up the vstest.console.exe location but as part of that we use the switch /EnableCodeCoverage. Subsequently we then attempt to run analysis on the results of that by invoking a tool which used to live under<br>
visual studio/14.0/Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe</p>
<p>It's the absence of CodeCoverage.exe I believe the OP was questioning.<br>
The results of this process is then uploaded to Coveralls.</p>
<p>Can you advise how to implement the same functioanlity on the 2017 image that was previously working on 2015?</p>
<p>Thanks</p></div>Daniel Jonestag:help.appveyor.com,2012-11-13:Comment/429915012017-08-15T21:06:05Z2017-08-15T21:06:23ZCode Coverage (Missing CodeCoverage.exe)<div><p><strong>@Daniel</strong> Did you try to use the exact workaround advised in my previous post, by adding the following command at any step before you use <code>vstest.console.exe</code>? After you called those commands you should not have to run <code>vstest.console.exe</code> from specific path.</p>
<pre>
<code>set path=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow;%path%
copy "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions\appveyor.*" "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions" /y</code>
</pre>
<p>This is tested workaround. If this does not work for you, please try provide a repro in public repository for us to debug.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/429915012017-08-16T11:38:53Z2017-08-16T11:38:54ZCode Coverage (Missing CodeCoverage.exe)<div><p>We aren’t trying to run vstest.console.exe – that is working fine.<br>
We are trying to run CodeCoverage.exe which on the previous image version lived under:</p>
<p>… visual studio/14.0/Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe</p>
<p>Daniel Jones<br>
Technical Architect</p>
<p>Strata | gotostrata.com<a href="https://www.gotostrata.com/">https://www.gotostrata.com/</a><br>
8th Floor Aldwych House<br>
71-91 Aldwych,<br>
London<br>
WC2B 4HN<br>
T 0207 280 4314</p>
<p>[cid:<a href="mailto:image002.png@01D3168C.8A41FFD0">image002.png@01D3168C.8A41FFD0</a>]</p>
<p>Strata is the trading name for Adazzle Limited. Adazzle Limited is a company registered in England and Wales (company number: 3910501 and VAT number: 757 1912 13 with its registered office and principal place of business at 71-91 Aldwych House, London WC2B 4HN, tel.: +44(0)20 7280 4500, e-mail [<a href="mailto:info@stratag.com">info@stratag.com</a><a href="mailto:info@stratag.com">info@stratag.com</a>]. Adazzle Ltd is owned by Strata Marketing, Inc. a Comcast Company.</p></div>Daniel Jonestag:help.appveyor.com,2012-11-13:Comment/429915012017-08-16T18:15:49Z2017-08-16T18:15:49ZCode Coverage (Missing CodeCoverage.exe)<div><p>Ah, I see. Here you go:</p>
<p>32-bit:<br>
<code>C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Team Tools\Dynamic Code Coverage Tools</code></p>
<p>64-bit:<br>
<code>C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Team Tools\Dynamic Code Coverage Tools\amd64</code></p>
<p>Also note that you can always use <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a> or simple run something like <code>cd c:\ && dir /s CodeCoverage.exe</code> during a build to discover things like this :)</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/429915012017-08-16T19:15:05Z2017-08-16T19:15:06ZCode Coverage (Missing CodeCoverage.exe)<div><p>Great thanks</p>
<p>Get Outlook for iOS<a href="https://aka.ms/o0ukef">https://aka.ms/o0ukef</a></p>
<hr></div>Daniel Jones