<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Writing Unit Tests for Pipeline Components with NCover</title>
	<atom:link href="http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/</link>
	<description>Experiences of a UK BizTalk Consultant</description>
	<lastBuildDate>Wed, 01 Feb 2012 18:36:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Elton</title>
		<link>http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/comment-page-1/#comment-298</link>
		<dc:creator>Elton</dc:creator>
		<pubDate>Mon, 08 Dec 2008 12:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=347#comment-298</guid>
		<description>Nice walkthrough Nick - worth noting that the discontinued versions of NCover are atill available here: http://www.ncover.com/download/discontinued. They&#039;re free and although there&#039;s no official support, they are stable and fully functional. The NCoverExplorer extras (http://www.kiwidude.com/dotnet/DownloadPage.html) are great for integrating NCover/NUnit into MSBuild and generating nice summary reports.</description>
		<content:encoded><![CDATA[<p>Nice walkthrough Nick &#8211; worth noting that the discontinued versions of NCover are atill available here: <a href="http://www.ncover.com/download/discontinued" rel="nofollow">http://www.ncover.com/download/discontinued</a>. They&#8217;re free and although there&#8217;s no official support, they are stable and fully functional. The NCoverExplorer extras (<a href="http://www.kiwidude.com/dotnet/DownloadPage.html" rel="nofollow">http://www.kiwidude.com/dotnet/DownloadPage.html</a>) are great for integrating NCover/NUnit into MSBuild and generating nice summary reports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Heppleston</title>
		<link>http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/comment-page-1/#comment-271</link>
		<dc:creator>Nick Heppleston</dc:creator>
		<pubDate>Sun, 02 Nov 2008 13:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=347#comment-271</guid>
		<description>Hi Joe,
This method is now redundant from the codebase, but thanks for the feedback.

Cheers, Nick.</description>
		<content:encoded><![CDATA[<p>Hi Joe,<br />
This method is now redundant from the codebase, but thanks for the feedback.</p>
<p>Cheers, Nick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Feser</title>
		<link>http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/comment-page-1/#comment-269</link>
		<dc:creator>Joe Feser</dc:creator>
		<pubDate>Fri, 31 Oct 2008 14:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=347#comment-269</guid>
		<description>The problem with the code is your file stream will never close if an exception is thrown.

You should place that code in a using block, the steam will be closed and the exception block will still be visited (if it is an IOException).

turn line 516 to 525 to use:
using (filestream...) {

//no need to flush or close, it will be done for you.
}

Joe</description>
		<content:encoded><![CDATA[<p>The problem with the code is your file stream will never close if an exception is thrown.</p>
<p>You should place that code in a using block, the steam will be closed and the exception block will still be visited (if it is an IOException).</p>
<p>turn line 516 to 525 to use:<br />
using (filestream&#8230;) {</p>
<p>//no need to flush or close, it will be done for you.<br />
}</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Waldschmidt</title>
		<link>http://www.modhul.com/2008/10/27/writing-unit-tests-for-pipeline-components-with-ncover/comment-page-1/#comment-268</link>
		<dc:creator>Daniel Waldschmidt</dc:creator>
		<pubDate>Thu, 30 Oct 2008 18:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=347#comment-268</guid>
		<description>Thanks, Nick!  Just getting back from PDC2008 a few hours ago, we back at the office pounding away at the requests we heard from our users.  

Dan (Technology Apostle_

-----

We&#039;ve been working hard to build the next generation of NCover. We&#039;re finally ready to show it off, and we feel confident that you&#039;ll love it as much as we do. 

We&#039;ve reworked how we manage coverage data in NCover, and it has led to performance improvements in many operations, including loading coverage files. It has also finally united the way that NCover and NCoverExplorer work, giving a more fluid experience between the applications. With that unification process finally completed, we were able to drive forward with some new features that we&#039;re excited to tell you about.


NCover 3 Beta includes Symbol and Branch Point Coverage, but it also has two new metrics - Cyclomatic Complexity and Method Visit Coverage.

Cyclomatic Complexity describes the number of independent paths through your methods. It&#039;s a great indicator of when you should refactor, and code with a low cyclomatic complexity will help you guarantee that new developers on your teams can get up to speed fairly quickly. You can learn more about Cyclomatic Complexity at Wikipedia.

While method visit coverage previously existed in NCoverExplorer, it only worked when you had symbol points for a method. With our new implementation you can guarantee that methods with no symbol points, including C# 3 automatic properties, have been tested.


Our team has been dreaming of letting developers see how their coverage has progressed for quite some time, and in NCover 3 our dream comes true. Recording trends is as easy as using the append to trends (//at) flag in NCover. Once you&#039;ve recorded trends you&#039;ll be able to generate html reports with graphs of how your coverage has changed over time and you&#039;ll also be able to see those trends in NCoverExplorer.


We hated the way that NCoverExplorer in NCover 2 would close its tree view every time you reload coverage, so we fixed that. Now the tree view dynamically updates itself with your new coverage data and stays open just as it was before the reload. Also, the new NCoverExplorer tree view is able to display branch coverage and cyclomatic complexity in addition to symbol and method visit coverage that it supported in version 2.

The statistics panel has been improved to show you more statistics. We now include various statistics on whatever item you have selected in the tree view, and if you have trend data loaded we show you a trends graph. 

Trends are available in the html report, too. We&#039;ve got a great graph that works across all major browsers and lets you see just how well your coverage is improving.

We felt like it was important to help you more strategically attack uncovered code, so we have replaced the old html report index with a new summary report that tells you the top 5 worst coverage offenders in several different categories.

Since coverage is ultimately about digging in and writing tests for uncovered code blocks, we wanted to give you a way to find the blocks to attack at a glance. That&#039;s why we created the Uncovered Code Report. The Uncovered Code Report shows you your top 25 blocks of uncovered code so that you&#039;ll always have a good place to start improving your coverage.</description>
		<content:encoded><![CDATA[<p>Thanks, Nick!  Just getting back from PDC2008 a few hours ago, we back at the office pounding away at the requests we heard from our users.  </p>
<p>Dan (Technology Apostle_</p>
<p>&#8212;&#8211;</p>
<p>We&#8217;ve been working hard to build the next generation of NCover. We&#8217;re finally ready to show it off, and we feel confident that you&#8217;ll love it as much as we do. </p>
<p>We&#8217;ve reworked how we manage coverage data in NCover, and it has led to performance improvements in many operations, including loading coverage files. It has also finally united the way that NCover and NCoverExplorer work, giving a more fluid experience between the applications. With that unification process finally completed, we were able to drive forward with some new features that we&#8217;re excited to tell you about.</p>
<p>NCover 3 Beta includes Symbol and Branch Point Coverage, but it also has two new metrics &#8211; Cyclomatic Complexity and Method Visit Coverage.</p>
<p>Cyclomatic Complexity describes the number of independent paths through your methods. It&#8217;s a great indicator of when you should refactor, and code with a low cyclomatic complexity will help you guarantee that new developers on your teams can get up to speed fairly quickly. You can learn more about Cyclomatic Complexity at Wikipedia.</p>
<p>While method visit coverage previously existed in NCoverExplorer, it only worked when you had symbol points for a method. With our new implementation you can guarantee that methods with no symbol points, including C# 3 automatic properties, have been tested.</p>
<p>Our team has been dreaming of letting developers see how their coverage has progressed for quite some time, and in NCover 3 our dream comes true. Recording trends is as easy as using the append to trends (//at) flag in NCover. Once you&#8217;ve recorded trends you&#8217;ll be able to generate html reports with graphs of how your coverage has changed over time and you&#8217;ll also be able to see those trends in NCoverExplorer.</p>
<p>We hated the way that NCoverExplorer in NCover 2 would close its tree view every time you reload coverage, so we fixed that. Now the tree view dynamically updates itself with your new coverage data and stays open just as it was before the reload. Also, the new NCoverExplorer tree view is able to display branch coverage and cyclomatic complexity in addition to symbol and method visit coverage that it supported in version 2.</p>
<p>The statistics panel has been improved to show you more statistics. We now include various statistics on whatever item you have selected in the tree view, and if you have trend data loaded we show you a trends graph. </p>
<p>Trends are available in the html report, too. We&#8217;ve got a great graph that works across all major browsers and lets you see just how well your coverage is improving.</p>
<p>We felt like it was important to help you more strategically attack uncovered code, so we have replaced the old html report index with a new summary report that tells you the top 5 worst coverage offenders in several different categories.</p>
<p>Since coverage is ultimately about digging in and writing tests for uncovered code blocks, we wanted to give you a way to find the blocks to attack at a glance. That&#8217;s why we created the Uncovered Code Report. The Uncovered Code Report shows you your top 25 blocks of uncovered code so that you&#8217;ll always have a good place to start improving your coverage.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

