<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Unit tests don&#8217;t guarantee that your system works</title>
	<link>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/</link>
	<description>Thoughts from the nice people at Codevader :)</description>
	<pubDate>Thu, 07 Aug 2008 20:03:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Maurício</title>
		<link>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-58</link>
		<author>Maurício</author>
		<pubDate>Fri, 18 Apr 2008 14:18:22 +0000</pubDate>
		<guid>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-58</guid>
		<description>Hi Mark,

The "validates_uniqueness_of" is just an example of "integrated" test. Everytime your system needs to "speak" to an outside entity there should be integration tests asserting that they are talking correctly and you never know if your SQL code works without running it on the "real" database.</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>The &#8220;validates_uniqueness_of&#8221; is just an example of &#8220;integrated&#8221; test. Everytime your system needs to &#8220;speak&#8221; to an outside entity there should be integration tests asserting that they are talking correctly and you never know if your SQL code works without running it on the &#8220;real&#8221; database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Wilden</title>
		<link>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-41</link>
		<author>Mark Wilden</author>
		<pubDate>Thu, 06 Mar 2008 15:24:49 +0000</pubDate>
		<guid>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-41</guid>
		<description>It seems to me that the only reason cited for not using BDD for testing validates_uniqueness_of is that it's "overkill" to mock the connection. Without that one word, the conclusions of an interesting and thoughtful post are unsupported, in my opinion.

What if we decided that mocking the connection was not "overkill"? Has anyone done it? I haven't, but I've often thought about doing it. This article makes me want to explore the idea more.

One more point: The purpose of programmer tests is not to ensure correctness. A great programmer will never be able to do the work of a great QAer, because each have diametrically opposed goals. The programmer wants his code to work - the QAer wants to make it fail. 

Just some thoughts. I found the rationale for TDD/BDD presented here very clear, and I plan to use it when explaining their benefits. 

///ark</description>
		<content:encoded><![CDATA[<p>It seems to me that the only reason cited for not using BDD for testing validates_uniqueness_of is that it&#8217;s &#8220;overkill&#8221; to mock the connection. Without that one word, the conclusions of an interesting and thoughtful post are unsupported, in my opinion.</p>
<p>What if we decided that mocking the connection was not &#8220;overkill&#8221;? Has anyone done it? I haven&#8217;t, but I&#8217;ve often thought about doing it. This article makes me want to explore the idea more.</p>
<p>One more point: The purpose of programmer tests is not to ensure correctness. A great programmer will never be able to do the work of a great QAer, because each have diametrically opposed goals. The programmer wants his code to work - the QAer wants to make it fail. </p>
<p>Just some thoughts. I found the rationale for TDD/BDD presented here very clear, and I plan to use it when explaining their benefits. </p>
<p>///ark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-40</link>
		<author>Derek</author>
		<pubDate>Thu, 06 Mar 2008 15:12:03 +0000</pubDate>
		<guid>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-40</guid>
		<description>Another method is to load your model and test that it executes the validates_uniqueness_of method with the expected parameters.</description>
		<content:encoded><![CDATA[<p>Another method is to load your model and test that it executes the validates_uniqueness_of method with the expected parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unit tests don&#8217;t guarantee that your system works &#171; Codeshooter&#8217;s Weblog</title>
		<link>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-39</link>
		<author>Unit tests don&#8217;t guarantee that your system works &#171; Codeshooter&#8217;s Weblog</author>
		<pubDate>Wed, 05 Mar 2008 15:54:02 +0000</pubDate>
		<guid>http://blog.codevader.com/2008/03/05/unit-tests-dont-guarantee-that-your-system-works/#comment-39</guid>
		<description>[...] Originally published at the CodeVader blog  [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Originally published at the CodeVader blog  [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
