Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to do code coverage and create reports in Visual Studio 2012 Professional
    primarykey
    data
    text
    <p>I'm trying to do code coverage and create reports in VS2012 Pro, which doesn't include the CodeCoverage.exe and the rest of the tools (As in Ultimate and Premium). I've looked through a lot of examples, and they usually seem to take the generated data file and convert it into xml. When I try to use (compile) that code, it complains about missing assemblies, which in turn seem related to the fact that I'm using the Pro version (as opposed to the Premium and Ultimate).</p> <p>I have a script that generates the coverage data to a .vsp file, but when using the VSPerfReport.exe (which seemed like a good fit), it fails with:</p> <blockquote> <p>Error VSP1712: Invalid File: myexename.vsp<br> Error: VSP1804: Did not successfully open the file.</p> </blockquote> <p>I want to create an html page in the end, and can probably do that by getting an xml first. I also tried to open the coverage file in VS but it couldn't read the file.</p> <p>So, I wonder if it's at all possible to do this with the tools provided in the Pro version?</p> <hr> <p>Here is the script:</p> <pre><code>@echo off set EXE=&lt;path to exe&gt;\&lt;exename&gt; set OUTPATH=.\coverage set OUT=%OUTPATH%\&lt;exename&gt; set ARGS=&lt;some args&gt; rem I've seen this extension in several examples, but it generates: rem Error VSP1712: No readers configured for the .coverage file extension. Check the ReaderFactoryConfig file. rem set VSP=%EXE%.coverage rem This extension generates the error message: rem Error VSP1712: Invalid File: &lt;path to exe&gt;\&lt;exename&gt;.vsp rem Error: VSP1804: Did not successfully open the file. set VSP=%EXE%.vsp mkdir %OUTPATH% vsinstr.exe %EXE% -coverage -outputpath:%OUTPATH% vsperfcmd.exe -start:coverage -output:%VSP% echo Running exe! %OUT% %ARGS% vsperfcmd.exe -shutdown VSPerfReport.exe %VSP% /Xml /Summary:all rm %OUT% </code></pre> <p><strong>Edit</strong></p> <p>I use C++ programs. And free is good, so I'd like to see what my options are.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload