<?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: Cost of Testing</title>
	<atom:link href="http://misko.hevery.com/2009/10/01/cost-of-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://misko.hevery.com/2009/10/01/cost-of-testing/</link>
	<description>Testability Explorer</description>
	<lastBuildDate>Tue, 09 Mar 2010 04:29:26 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: a response to &#8211; &#8220;What would you say is the average percentage of development time devoted to creating the unit test scripts?&#8221; &#124; Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-3079</link>
		<dc:creator>a response to &#8211; &#8220;What would you say is the average percentage of development time devoted to creating the unit test scripts?&#8221; &#124; Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky</dc:creator>
		<pubDate>Sun, 14 Feb 2010 18:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-3079</guid>
		<description>[...] Misko Hevery comes up with a figure of 10% cost.  He calls it a 10% tax and points out the benefits that come a tax.  Note that he is writing tests as an integral part of his process and is fluent in doing so.  He also actively dispels the myth that testing takes twice as long. [...]</description>
		<content:encoded><![CDATA[<p>[...] Misko Hevery comes up with a figure of 10% cost.  He calls it a 10% tax and points out the benefits that come a tax.  Note that he is writing tests as an integral part of his process and is fluent in doing so.  He also actively dispels the myth that testing takes twice as long. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2657</link>
		<dc:creator>Oleg</dc:creator>
		<pubDate>Fri, 25 Dec 2009 16:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2657</guid>
		<description>Hi. 

Well, 12 LOC/hour is very good! This is above industry average. Of course you should measure LOC of project / hours of project, so your hours include analysis, design, testing etc. etc. Under project I include even one release cycle with a couple of change requests.

We had a project, where we had like 40 LOC/hour during some unhealthy period, but it was cut down to half very quickly when we started actually testing our code :-))

Oleg</description>
		<content:encoded><![CDATA[<p>Hi. </p>
<p>Well, 12 LOC/hour is very good! This is above industry average. Of course you should measure LOC of project / hours of project, so your hours include analysis, design, testing etc. etc. Under project I include even one release cycle with a couple of change requests.</p>
<p>We had a project, where we had like 40 LOC/hour during some unhealthy period, but it was cut down to half very quickly when we started actually testing our code <img src='http://misko.hevery.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>Oleg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomasz Jedzierowski (venc)</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2646</link>
		<dc:creator>Tomasz Jedzierowski (venc)</dc:creator>
		<pubDate>Tue, 22 Dec 2009 22:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2646</guid>
		<description>I agree that LOC is a bad metric when it comes to developer productivity. Just 12 LOC/hour is very low and I think that a lot of the time is spent on making the codebase testable by changing the design. This does not necessarily have a huge impact but in my opinion it is important to include such considerations in the calculations of the total cost of TDD. Quite often more testable code means better design therefor surelly not all the time spent on improving the  design should be added to the overhead of TDD but it can easily be overdone. The developer which will have to maintain the project will thank you but the manager who pays the bills might not. 

[OT] Changed to real name as I see that none commenter so far used a nickname. Great blog by the way :)</description>
		<content:encoded><![CDATA[<p>I agree that LOC is a bad metric when it comes to developer productivity. Just 12 LOC/hour is very low and I think that a lot of the time is spent on making the codebase testable by changing the design. This does not necessarily have a huge impact but in my opinion it is important to include such considerations in the calculations of the total cost of TDD. Quite often more testable code means better design therefor surelly not all the time spent on improving the  design should be added to the overhead of TDD but it can easily be overdone. The developer which will have to maintain the project will thank you but the manager who pays the bills might not. </p>
<p>[OT] Changed to real name as I see that none commenter so far used a nickname. Great blog by the way <img src='http://misko.hevery.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: misko</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2644</link>
		<dc:creator>misko</dc:creator>
		<pubDate>Tue, 22 Dec 2009 15:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2644</guid>
		<description>@venc,

excellent question. I consider myself a quick typist and fast at creating code, so the slowness cannot be attributed to it. Thinking back at how the code got created, there are times when I have produced a lot of code in short amount of time with tests. So writing tests is not what slows you down. The slow down comes from realizing that your current design is not the right one, and as a result you start refactoring. My experience is that everyone at some point realizes that their design is suboptimal, but most people say it is not worth the trouble and keep on coding more code. With tests you can step back and say, this is not right, and rearange/rewrite things and still be sure that you did not break anything. I think that you cannot look at LOC in the raw form. You need to look at Feature / LOC and that is hard to calculate. So the question should not be why i have only written 12 LOC per hour but why can I get high feature for little LOC.</description>
		<content:encoded><![CDATA[<p>@venc,</p>
<p>excellent question. I consider myself a quick typist and fast at creating code, so the slowness cannot be attributed to it. Thinking back at how the code got created, there are times when I have produced a lot of code in short amount of time with tests. So writing tests is not what slows you down. The slow down comes from realizing that your current design is not the right one, and as a result you start refactoring. My experience is that everyone at some point realizes that their design is suboptimal, but most people say it is not worth the trouble and keep on coding more code. With tests you can step back and say, this is not right, and rearange/rewrite things and still be sure that you did not break anything. I think that you cannot look at LOC in the raw form. You need to look at Feature / LOC and that is hard to calculate. So the question should not be why i have only written 12 LOC per hour but why can I get high feature for little LOC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venc</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2643</link>
		<dc:creator>venc</dc:creator>
		<pubDate>Tue, 22 Dec 2009 15:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2643</guid>
		<description>Well...

14k LOC and 1.2k Hours thats about 12 lines of code per hour. What did You spend the rest of the time on? I suppose it was somewhat connected to the test process i.e. it had to do with makeing the design so that it is testable. At least part of the time spent on the design should be included in the time spent on test coverage.</description>
		<content:encoded><![CDATA[<p>Well&#8230;</p>
<p>14k LOC and 1.2k Hours thats about 12 lines of code per hour. What did You spend the rest of the time on? I suppose it was somewhat connected to the test process i.e. it had to do with makeing the design so that it is testable. At least part of the time spent on the design should be included in the time spent on test coverage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt harrison</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2379</link>
		<dc:creator>matt harrison</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2379</guid>
		<description>This research paper suggests overhead of 15-35% for doing TDD
http://research.microsoft.com/en-us/projects/esm/nagappan_tdd.pdf

Great blog by the way!</description>
		<content:encoded><![CDATA[<p>This research paper suggests overhead of 15-35% for doing TDD<br />
<a href="http://research.microsoft.com/en-us/projects/esm/nagappan_tdd.pdf" rel="nofollow">http://research.microsoft.com/en-us/projects/esm/nagappan_tdd.pdf</a></p>
<p>Great blog by the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Costs of Testing, Costs of Quality &#124; Test And Try</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2129</link>
		<dc:creator>Costs of Testing, Costs of Quality &#124; Test And Try</dc:creator>
		<pubDate>Tue, 20 Oct 2009 09:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2129</guid>
		<description>[...] Cost of Testing by Miško Hevery Test Driven Development and the costs of writing code base tests. [...]</description>
		<content:encoded><![CDATA[<p>[...] Cost of Testing by Miško Hevery Test Driven Development and the costs of writing code base tests. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark&#8217;s Testblog &#187; Blog Archive &#187; Internals: To test, or not to test? - &#8230;for these are testing times, indeed.</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2048</link>
		<dc:creator>Mark&#8217;s Testblog &#187; Blog Archive &#187; Internals: To test, or not to test? - &#8230;for these are testing times, indeed.</dc:creator>
		<pubDate>Fri, 09 Oct 2009 01:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2048</guid>
		<description>[...] Hevery recently posted something interesting on his testing breakdown and, while most of us won&#8217;t reach his level of testing efficiency, [...]</description>
		<content:encoded><![CDATA[<p>[...] Hevery recently posted something interesting on his testing breakdown and, while most of us won&#8217;t reach his level of testing efficiency, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionut G. Stan</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2038</link>
		<dc:creator>Ionut G. Stan</dc:creator>
		<pubDate>Thu, 08 Oct 2009 00:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2038</guid>
		<description>Thanks for your response Misko.

That&#039;s interesting. My first attempts with TDD were by writing tests for the whole class, which obviously didn&#039;t work. I believe there are more people like me, so what I usually advise now is to tackle them method by method. The red, green, refactor thing was a kind of a revelation for me.</description>
		<content:encoded><![CDATA[<p>Thanks for your response Misko.</p>
<p>That&#8217;s interesting. My first attempts with TDD were by writing tests for the whole class, which obviously didn&#8217;t work. I believe there are more people like me, so what I usually advise now is to tackle them method by method. The red, green, refactor thing was a kind of a revelation for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: misko</title>
		<link>http://misko.hevery.com/2009/10/01/cost-of-testing/comment-page-1/#comment-2034</link>
		<dc:creator>misko</dc:creator>
		<pubDate>Wed, 07 Oct 2009 15:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://misko.hevery.com/?p=568#comment-2034</guid>
		<description>@Ionut,

I think everyone does TDD in the first way you described. We write a little test and than we implement it, we write another and than we implement that. I have not heard of anyone writing all of the tests at once.

I do sometimes write multiple test but they are on different level. I will write larger functional test and than write a smaller unit test.</description>
		<content:encoded><![CDATA[<p>@Ionut,</p>
<p>I think everyone does TDD in the first way you described. We write a little test and than we implement it, we write another and than we implement that. I have not heard of anyone writing all of the tests at once.</p>
<p>I do sometimes write multiple test but they are on different level. I will write larger functional test and than write a smaller unit test.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
