<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx</link><description>The code coverage tool in Visual Studio 2008 Team System is quite easy to use from within the IDE unless you want code coverage for your native C++ code. In order to generate a code coverage report for native C++ you have to use the command line tools</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#10165755</link><pubDate>Wed, 18 May 2011 09:55:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10165755</guid><dc:creator>S Döhla</dc:creator><description>&lt;p&gt;I&amp;#39;m totally impressed by the code coverage for C/C++ using your method. It&amp;#39;s not very convenient to use the command line (and I&amp;#39;d say someone should write an Add-In for this functionality) but the later on nice visualization in the VS editor is absolutely worth it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10165755" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#10010113</link><pubDate>Mon, 10 May 2010 10:00:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10010113</guid><dc:creator>Pavan</dc:creator><description>&lt;p&gt;Hi when i am running the 5th step i am getting error saying&amp;quot;This application has failed to start because VSCover90.dll was not found.Re-intalling the application may fix this problem.&amp;quot;&lt;/p&gt;
&lt;p&gt;How to fix the above error.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Pavan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10010113" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#10004085</link><pubDate>Wed, 28 Apr 2010 19:38:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10004085</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;@Sherwood: Sorry no experience there. I'm using Bullseye for coverage wich has a better way of showing a merged result.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10004085" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#10004067</link><pubDate>Wed, 28 Apr 2010 18:56:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10004067</guid><dc:creator>Sherwood</dc:creator><description>&lt;p&gt;Thanks for the explanation. &lt;/p&gt;
&lt;p&gt;I finally got it setup in my project. My project has multiple unit tests, with each test file compiled into an executable. &amp;nbsp;After I run those files, I got a single .coverage file. When I loaded into Visual Studio, it displays the coverage under each executable. I could not find a way to display coverage in a merged manner. For example, a.cpp have a coverage of 20% under test1.exe, 30% under test2.exe. I am interest to see the overall coverage of a.cpp.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10004067" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9981861</link><pubDate>Fri, 19 Mar 2010 14:29:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9981861</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;@Andreas Bittel: Assuming VS2008 you need either the team suite or the test version (I think the code coverage is part of the test version as weel as the team suite). You cannot use any version of VC++.&lt;/p&gt;
&lt;p&gt;I guess that even if you have the team suite, there is a possibility to not install the code coverage tool too.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9981861" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9981794</link><pubDate>Fri, 19 Mar 2010 11:47:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9981794</guid><dc:creator>Andreas Bittel</dc:creator><description>&lt;p&gt;I found out &amp;nbsp;to get the code coverage with visual studio for c++, I have to use the two files &amp;quot;vinstr&amp;quot; and &amp;quot;vsperfmon&amp;quot;. I cannot find these files in my local installed version of visual studio (&amp;quot;performance tool&amp;quot; is not existing). &lt;/p&gt;
&lt;p&gt;Where can I get these two files?&lt;/p&gt;
&lt;p&gt;andreas.bittel@cdn-automotive.com&lt;/p&gt;
&lt;p&gt;tia&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Andreas Bittel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9981794" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9300270</link><pubDate>Fri, 09 Jan 2009 00:15:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9300270</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;Eric, you're right. I have updated the text.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9300270" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9299912</link><pubDate>Thu, 08 Jan 2009 23:10:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9299912</guid><dc:creator>Eric</dc:creator><description>&lt;p&gt;I *think* the tool for instrumenting is vsinstr.exe rather than vsinst.exe. &amp;nbsp;That's what I've got on my machine, anyway.&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9299912" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9286899</link><pubDate>Wed, 07 Jan 2009 09:31:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9286899</guid><dc:creator>Emil Gustafsson</dc:creator><description>&lt;p&gt;@ Kirk:&lt;/p&gt;
&lt;p&gt;I guess your observation is correct, typicaly since releasebuilds are optimized while Debug builds are not (since you in Debug builds want to preserve the code structure to make step by step debugging meaningful).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9286899" width="1" height="1"&gt;</description></item><item><title>re: Native C++ Code Coverage reports using Visual Studio 2008 Team System</title><link>http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx#9286365</link><pubDate>Wed, 07 Jan 2009 01:50:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9286365</guid><dc:creator>Kirk</dc:creator><description>&lt;p&gt;Nice work. &amp;nbsp;This really helped.&lt;/p&gt;
&lt;p&gt;One thing that I have found: &amp;nbsp;you can seemingly get overall numbers in Release builds, but you will get more itemized results (per class/method) in Debug mode. &amp;nbsp;Is this correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9286365" width="1" height="1"&gt;</description></item></channel></rss>