<?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: Test Doubles: When To (Not) Use Them</title>
	<atom:link href="http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/feed/" rel="self" type="application/rss+xml" />
	<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/</link>
	<description>Trying to walk that thin line between intelligence and ignorance</description>
	<lastBuildDate>Sat, 13 Mar 2010 21:19:34 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nocturn vision &#187; Blog Archive &#187; Introduction to test-doubles</title>
		<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/comment-page-1/#comment-9987</link>
		<dc:creator>Nocturn vision &#187; Blog Archive &#187; Introduction to test-doubles</dc:creator>
		<pubDate>Mon, 16 Mar 2009 18:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=305#comment-9987</guid>
		<description>[...] doubles by Martin FowlerxUnit Test Patterns by Gerard Meszaros (also check out the website)Test Doubles: When (not) to use them by Davy [...]</description>
		<content:encoded><![CDATA[<p>[...] doubles by Martin FowlerxUnit Test Patterns by Gerard Meszaros (also check out the website)Test Doubles: When (not) to use them by Davy [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #159</title>
		<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/comment-page-1/#comment-1159</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #159</dc:creator>
		<pubDate>Fri, 15 Aug 2008 07:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=305#comment-1159</guid>
		<description>[...] Test Doubles: When To (Not) Use Them - Davy Brion gives some guidance for choosing when to use the real component and when to use a test double in its place when writing tests. [...]</description>
		<content:encoded><![CDATA[<p>[...] Test Doubles: When To (Not) Use Them &#8211; Davy Brion gives some guidance for choosing when to use the real component and when to use a test double in its place when writing tests. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - August 14, 2008 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/comment-page-1/#comment-1151</link>
		<dc:creator>Dew Drop - August 14, 2008 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Thu, 14 Aug 2008 13:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=305#comment-1151</guid>
		<description>[...] Test Doubles: When to (Not) Use Them (Davy Brion) [...]</description>
		<content:encoded><![CDATA[<p>[...] Test Doubles: When to (Not) Use Them (Davy Brion) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/comment-page-1/#comment-1150</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Thu, 14 Aug 2008 05:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=305#comment-1150</guid>
		<description>true, up to a point. We currently have 2 projects at work where practically all of the tests use the database.  One has about 11000 tests, and the tests take 20 minutes to run. Nobody runs the tests on their own machine, they always wait for the buildserver to run them. Apart from being horribly slow, the developers of that team actually do a great job of keeping that build &#039;green&#039; as much as possible. Still, i would much rather see them having a test suite that can be ran by anyone at any time without wasting time on it.

The second project has about 7000 tests, which take about 10 minutes to run. The biggest problem with this project is not the time wasted running the tests, but the time wasted on writing the setup for each test because they have a horribly complicated data model. For every new test, they are wasting a lot of time just to be able to write tests. There&#039;s also a large maintenance cost involved... i&#039;ve heard some developers claim that they often spend 4 hours or more fixing/modifying tests that are related to a fix/modification in the code which only took them about an hour to do.  Those tests are also extremely fragile, up to the point where i&#039;m actually suprised if the project has a completely green build. It doesn&#039;t happen often. And it never lasts long.</description>
		<content:encoded><![CDATA[<p>true, up to a point. We currently have 2 projects at work where practically all of the tests use the database.  One has about 11000 tests, and the tests take 20 minutes to run. Nobody runs the tests on their own machine, they always wait for the buildserver to run them. Apart from being horribly slow, the developers of that team actually do a great job of keeping that build &#8216;green&#8217; as much as possible. Still, i would much rather see them having a test suite that can be ran by anyone at any time without wasting time on it.</p>
<p>The second project has about 7000 tests, which take about 10 minutes to run. The biggest problem with this project is not the time wasted running the tests, but the time wasted on writing the setup for each test because they have a horribly complicated data model. For every new test, they are wasting a lot of time just to be able to write tests. There&#8217;s also a large maintenance cost involved&#8230; i&#8217;ve heard some developers claim that they often spend 4 hours or more fixing/modifying tests that are related to a fix/modification in the code which only took them about an hour to do.  Those tests are also extremely fragile, up to the point where i&#8217;m actually suprised if the project has a completely green build. It doesn&#8217;t happen often. And it never lasts long.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://davybrion.com/blog/2008/08/test-doubles-when-to-not-use-them/comment-page-1/#comment-1149</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Thu, 14 Aug 2008 04:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=305#comment-1149</guid>
		<description>The problem we found is that developers are too used to working closely with databases, so when we introduced unit tests, a lot more tests than was necessary had db dependancies.

Of course this doesn&#039;t scale well, takes a lot more setup/teardown work and is generally a bad idea, but the hard part is convincing people that separation of concerns (and single responsibility principle) is often the root cause of this database dependency problem. One person I work with has adopted (db dependent quasi-unit) testing and loves it, so I don&#039;t want to discourage them. I&#039;d rather have slow tests than no tests at all.</description>
		<content:encoded><![CDATA[<p>The problem we found is that developers are too used to working closely with databases, so when we introduced unit tests, a lot more tests than was necessary had db dependancies.</p>
<p>Of course this doesn&#8217;t scale well, takes a lot more setup/teardown work and is generally a bad idea, but the hard part is convincing people that separation of concerns (and single responsibility principle) is often the root cause of this database dependency problem. One person I work with has adopted (db dependent quasi-unit) testing and loves it, so I don&#8217;t want to discourage them. I&#8217;d rather have slow tests than no tests at all.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
