<?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: Code Coverage &#8211; Why?</title>
	<atom:link href="http://pathfindersoftware.com/2009/05/code-coverage-why/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2009/05/code-coverage-why/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sahaab</title>
		<link>http://pathfindersoftware.com/2009/05/code-coverage-why/#comment-9509</link>
		<dc:creator>sahaab</dc:creator>
		<pubDate>Sat, 04 Jul 2009 17:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=2404#comment-9509</guid>
		<description>imho code coverage is a very misleading metric and i like to keep distance with it.
it wouldn&#039;t cover most serious bugs and gives you a false feeling of security. you would also find lazy/bad developers who tend to write test cases with one goal in mind: 100% should happen and that will be it.
well it might make sense in perl, where if nothing it tells you the syntax is alright :)

heres what i would profess:
1. have automated regression test suite
2. for every feature you add have an exhaustive set of test cases added to the suite</description>
		<content:encoded><![CDATA[<p>imho code coverage is a very misleading metric and i like to keep distance with it.<br />
it wouldn&#8217;t cover most serious bugs and gives you a false feeling of security. you would also find lazy/bad developers who tend to write test cases with one goal in mind: 100% should happen and that will be it.<br />
well it might make sense in perl, where if nothing it tells you the syntax is alright <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>heres what i would profess:<br />
1. have automated regression test suite<br />
2. for every feature you add have an exhaustive set of test cases added to the suite</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John McCaffrey</title>
		<link>http://pathfindersoftware.com/2009/05/code-coverage-why/#comment-9508</link>
		<dc:creator>John McCaffrey</dc:creator>
		<pubDate>Fri, 15 May 2009 14:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=2404#comment-9508</guid>
		<description>My take on it is that if the code coverage goes down *significantly* by some agreed upon amount, that should be a build breakage. I think that point is going to be lost behind the 100% number. &quot;Coverage Driven Testing&quot; is a very real problem, and I&#039;ve seen first-hand that people can get too caught up in the numbers, but as we know, the code coverage numbers don&#039;t mean that the tests are any good.

Imagine the coverage was at a respectable 70%, and then someone checks in a big change that brings the coverage down to 60%, but the tests are all still passing. Wouldn&#039;t you want to know that your coverage just went down by 10%?

If it turns out that the person found a bunch of useless tests and got rid of them, that&#039;s fine we&#039;ll reset our number. There are always exceptions to rules, but I just want to be Alerted to big changes. (this is even more true when working with bigger teams or people you don&#039;t know as well)

If I was on this project with Jason, I would probably suggest that the build should break if the coverage went down by a certain percent, let&#039;s say 2-5% depending on how big the codebase is.

As Noel pointed out in his post, there are two phases
1. Detect
2. Fix
and I agree with him that its the Fixing part that is more important and indicative of how well your team works together.</description>
		<content:encoded><![CDATA[<p>My take on it is that if the code coverage goes down *significantly* by some agreed upon amount, that should be a build breakage. I think that point is going to be lost behind the 100% number. &#8220;Coverage Driven Testing&#8221; is a very real problem, and I&#8217;ve seen first-hand that people can get too caught up in the numbers, but as we know, the code coverage numbers don&#8217;t mean that the tests are any good.</p>
<p>Imagine the coverage was at a respectable 70%, and then someone checks in a big change that brings the coverage down to 60%, but the tests are all still passing. Wouldn&#8217;t you want to know that your coverage just went down by 10%?</p>
<p>If it turns out that the person found a bunch of useless tests and got rid of them, that&#8217;s fine we&#8217;ll reset our number. There are always exceptions to rules, but I just want to be Alerted to big changes. (this is even more true when working with bigger teams or people you don&#8217;t know as well)</p>
<p>If I was on this project with Jason, I would probably suggest that the build should break if the coverage went down by a certain percent, let&#8217;s say 2-5% depending on how big the codebase is.</p>
<p>As Noel pointed out in his post, there are two phases<br />
1. Detect<br />
2. Fix<br />
and I agree with him that its the Fixing part that is more important and indicative of how well your team works together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://pathfindersoftware.com/2009/05/code-coverage-why/#comment-9507</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 14 May 2009 20:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=2404#comment-9507</guid>
		<description>One way I’m exploring right now to address this is to run coverage tests for controllers, helpers and models individually and exclude the other parts from the coverage statistics. This way controller specs don’t mess up helper or model coverage results.</description>
		<content:encoded><![CDATA[<p>One way I’m exploring right now to address this is to run coverage tests for controllers, helpers and models individually and exclude the other parts from the coverage statistics. This way controller specs don’t mess up helper or model coverage results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Heath</title>
		<link>http://pathfindersoftware.com/2009/05/code-coverage-why/#comment-9506</link>
		<dc:creator>Mike Heath</dc:creator>
		<pubDate>Wed, 13 May 2009 18:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=2404#comment-9506</guid>
		<description>When you ask for 100% test coverage, you&#039;re asking for crappy tests.  Code coverage is not a code quality metric.  It&#039;s not even a test quality metric.  Don&#039;t pretend that it is.</description>
		<content:encoded><![CDATA[<p>When you ask for 100% test coverage, you&#8217;re asking for crappy tests.  Code coverage is not a code quality metric.  It&#8217;s not even a test quality metric.  Don&#8217;t pretend that it is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael King</title>
		<link>http://pathfindersoftware.com/2009/05/code-coverage-why/#comment-9505</link>
		<dc:creator>Michael King</dc:creator>
		<pubDate>Wed, 13 May 2009 13:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=2404#comment-9505</guid>
		<description>Don&#039;t you just love rcov&#039;s drive by coverage?

While I think 100% coverage is a worthy goal, I think I am going to have to side with Noel in that it&#039;s not realistic. To mangle a quote, &#039;I do not think 100% coverage from rcov means what you think it means.&#039;

If rcov is improved to define coverage as assertions then 100% coverage means significantly more. Unfortunately that is easier said than done.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t you just love rcov&#8217;s drive by coverage?</p>
<p>While I think 100% coverage is a worthy goal, I think I am going to have to side with Noel in that it&#8217;s not realistic. To mangle a quote, &#8216;I do not think 100% coverage from rcov means what you think it means.&#8217;</p>
<p>If rcov is improved to define coverage as assertions then 100% coverage means significantly more. Unfortunately that is easier said than done.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-09 23:38:34 -->
