<?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: Striving for 100 percent</title>
	<atom:link href="http://millarian.com/programming/striving-for-100-percent/feed/" rel="self" type="application/rss+xml" />
	<link>http://millarian.com/programming/striving-for-100-percent/</link>
	<description>Musings of a startup junkie and Ruby on Rails nerd.</description>
	<lastBuildDate>Mon, 21 Jun 2010 10:11:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: heidmotron</title>
		<link>http://millarian.com/programming/striving-for-100-percent/comment-page-1/#comment-20</link>
		<dc:creator>heidmotron</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false"></guid>
		<description>&lt;p&gt;I would say the goal of testing is not to get a 100% badge. But at the same I would say if a function is easy to write, it should be easy to test. If it isn&#8217;t, was the function created really that easy. Were all the nuances taken into account? Could you be confident that it would work 100% of the time?  And maybe a question to the customer would be what level of uncertainty do they risk by not having a good test suite? It&#8217;s something that I think over time it&#8217;s easier to see the value than right off the bat.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I would say the goal of testing is not to get a 100% badge. But at the same I would say if a function is easy to write, it should be easy to test. If it isn&#8217;t, was the function created really that easy. Were all the nuances taken into account? Could you be confident that it would work 100% of the time?  And maybe a question to the customer would be what level of uncertainty do they risk by not having a good test suite? It&#8217;s something that I think over time it&#8217;s easier to see the value than right off the bat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://millarian.com/programming/striving-for-100-percent/comment-page-1/#comment-21</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false"></guid>
		<description>&lt;p&gt;@heidmotron, thanks for the comment.&lt;/p&gt;


	&lt;p&gt;I agree that functions &lt;em&gt;should&lt;/em&gt; be easy to test, but certain aspects of testing can be pretty tricky. This is especially true when dealing with negative path cases.&lt;/p&gt;


	&lt;p&gt;I also don&#8217;t necessarily equate 100% coverage with 100% tested, although that occurs sometimes.  &lt;acronym title=&quot;In My Opinion&quot;&gt;IMO&lt;/acronym&gt;, coverage should not really be used as the sole measure of quality.  Coverage merely lets you know that a line of code was executed during a test.  You&#8217;re not assured that line of code was executed with all permutations and therefore cannot be sure it works for any cases other than those tested, despite the results of your code coverage utility.&lt;/p&gt;


	&lt;p&gt;Support for mocks and stubs in &lt;a href=&quot;http://rspec.rubyforge.org&quot;&gt;Rspec&lt;/a&gt; is certainly making it easier to get good coverage, but there are still some tricky cases that take more time to get coverage for.  Perhaps as I become more versed and seasoned with Rspec I will overcome those challenges more easily.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@heidmotron, thanks for the comment.</p>
<p>I agree that functions <em>should</em> be easy to test, but certain aspects of testing can be pretty tricky. This is especially true when dealing with negative path cases.</p>
<p>I also don&#8217;t necessarily equate 100% coverage with 100% tested, although that occurs sometimes.  <acronym title="In My Opinion">IMO</acronym>, coverage should not really be used as the sole measure of quality.  Coverage merely lets you know that a line of code was executed during a test.  You&#8217;re not assured that line of code was executed with all permutations and therefore cannot be sure it works for any cases other than those tested, despite the results of your code coverage utility.</p>
<p>Support for mocks and stubs in <a href="http://rspec.rubyforge.org">Rspec</a> is certainly making it easier to get good coverage, but there are still some tricky cases that take more time to get coverage for.  Perhaps as I become more versed and seasoned with Rspec I will overcome those challenges more easily.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
