<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code Coverage on Hermit Blog</title><link>https://hermit.no/categories/code-coverage/</link><description>Recent content in Code Coverage on Hermit Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 04 Dec 2013 21:49:02 +0100</lastBuildDate><atom:link href="https://hermit.no/categories/code-coverage/index.xml" rel="self" type="application/rss+xml"/><item><title>How to exclude code from Code Coverage in Visual Studio unit testing using runsettings</title><link>https://hermit.no/archive/2013-12-04-how-to-exclude-code-from-code-coverage-in-visual-studio-unit-testing-using-runsettings/</link><pubDate>Wed, 04 Dec 2013 21:49:02 +0100</pubDate><guid>https://hermit.no/archive/2013-12-04-how-to-exclude-code-from-code-coverage-in-visual-studio-unit-testing-using-runsettings/</guid><description>&lt;p&gt;Download:  &lt;a href="http://visualstudiogallery.msdn.microsoft.com/601bd207-5889-4935-b101-3ebe1f25aafa"&gt;VS2012 Runsettingstemplate&lt;/a&gt;   &lt;a href="http://visualstudiogallery.msdn.microsoft.com/704ebd18-7d60-4341-9224-532f73229c74"&gt;VS2013 Runsettingstemplate&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The VS2012/13 unit test feature can generate code coverage results.  It can do so for (nearly) any type of adapter you choose to use, MSTest, CPPTest (managed/native), &lt;a href="http://xunit.codeplex.com/"&gt;XUnit&lt;/a&gt; and &lt;a href="http://nunit.org"&gt;NUnit&lt;/a&gt; (but not Chutzpah (note 1)).&lt;/p&gt;&#10;&lt;p&gt;Assume you have a project with a set of unit tests included.  For this demonstration I have used multiple different test frameworks just to show that this applies to any of these frameworks.&lt;/p&gt;&#10;&lt;p&gt;You choose to analyze for code coverage:&lt;/p&gt;</description></item></channel></rss>