<?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: Naming unit tests</title>
	<atom:link href="http://www.fuzzylizard.com/archives/2008/09/03/977/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fuzzylizard.com/archives/2008/09/03/977/</link>
	<description>Web development and design with a little VFX thrown in for fun</description>
	<lastBuildDate>Fri, 14 Jan 2011 22:45:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Alex Hung</title>
		<link>http://www.fuzzylizard.com/archives/2008/09/03/977/comment-page-1/#comment-31317</link>
		<dc:creator>Alex Hung</dc:creator>
		<pubDate>Mon, 08 Dec 2008 16:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuzzylizard.com/?p=977#comment-31317</guid>
		<description>I agree with Sarah. What I&#039;ve found is that my unit test names are primarily driven by the story requirements. I extensively use the &quot;Should...&quot; paradigm to make sure I (and my pair) focus on the why, and not what or how. This way, the names tend to stay the same because I am implementing tests to confirm requirements are satisfied, and leave the implementation details to the code.</description>
		<content:encoded><![CDATA[<p>I agree with Sarah. What I&#8217;ve found is that my unit test names are primarily driven by the story requirements. I extensively use the &#8220;Should&#8230;&#8221; paradigm to make sure I (and my pair) focus on the why, and not what or how. This way, the names tend to stay the same because I am implementing tests to confirm requirements are satisfied, and leave the implementation details to the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah Taraporewalla</title>
		<link>http://www.fuzzylizard.com/archives/2008/09/03/977/comment-page-1/#comment-28069</link>
		<dc:creator>Sarah Taraporewalla</dc:creator>
		<pubDate>Wed, 03 Sep 2008 19:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuzzylizard.com/?p=977#comment-28069</guid>
		<description>Perhaps if you don&#039;t know how you want the code to behave, then you haven&#039;t thought through the design of your story enough. If find if you test the behaviour, rather than what it is meant to do, then you usually know what you want to happen. Sometimes, I decide to push implementation down to other services, helpers, or lower down the stack, but I keep the original test inplace, and also have the test at the required unit level.

Of course, there are always going to be those times when you really don&#039;t know how the code will hang together. Pat Kua call these times experimentation http://www.thekua.com/atwork/2008/02/05/if-you-do-test-driven-development-all-the-time-youre-doing-something-wrong/. Take his advice - use TDD when you are focused on the problem, and know how to solve it; use experimentation to find out how to solve it (and then quite possible, revert all your changes and begin TDD)</description>
		<content:encoded><![CDATA[<p>Perhaps if you don&#8217;t know how you want the code to behave, then you haven&#8217;t thought through the design of your story enough. If find if you test the behaviour, rather than what it is meant to do, then you usually know what you want to happen. Sometimes, I decide to push implementation down to other services, helpers, or lower down the stack, but I keep the original test inplace, and also have the test at the required unit level.</p>
<p>Of course, there are always going to be those times when you really don&#8217;t know how the code will hang together. Pat Kua call these times experimentation <a href="http://www.thekua.com/atwork/2008/02/05/if-you-do-test-driven-development-all-the-time-youre-doing-something-wrong/" rel="nofollow">http://www.thekua.com/atwork/2008/02/05/if-you-do-test-driven-development-all-the-time-youre-doing-something-wrong/</a>. Take his advice &#8211; use TDD when you are focused on the problem, and know how to solve it; use experimentation to find out how to solve it (and then quite possible, revert all your changes and begin TDD)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

