<?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: Avoiding Brittle Tests / Testing Output</title>
	<atom:link href="http://www.thedeveloperday.com/avoiding-brittle-tests-testing-output/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com/avoiding-brittle-tests-testing-output/</link>
	<description>Staying Curious</description>
	<lastBuildDate>Wed, 01 Feb 2012 07:05:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave</title>
		<link>http://www.thedeveloperday.com/avoiding-brittle-tests-testing-output/comment-page-1/#comment-1023</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 07 Apr 2011 23:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.thedeveloperday.com/?p=517#comment-1023</guid>
		<description>This is a really good point and I think it&#039;s one of the greatest challenges facing the TDD approach. A lot of classes don&#039;t work like black boxes that take some input and return some output. They have side effects on other objects and entities in the system. I don&#039;t know of way to test a method like the one you wrote above that reasonably exercises the class without requiring tests to have WAY to much implementation knowledge and thus become brittle. It&#039;s likely that just checking whether or not send() was called isn&#039;t enough to call that class sufficiently unit tested.

This seems to be one of those problems that nobody wants to even acknowledge much less try solve.</description>
		<content:encoded><![CDATA[<p>This is a really good point and I think it&#8217;s one of the greatest challenges facing the TDD approach. A lot of classes don&#8217;t work like black boxes that take some input and return some output. They have side effects on other objects and entities in the system. I don&#8217;t know of way to test a method like the one you wrote above that reasonably exercises the class without requiring tests to have WAY to much implementation knowledge and thus become brittle. It&#8217;s likely that just checking whether or not send() was called isn&#8217;t enough to call that class sufficiently unit tested.</p>
<p>This seems to be one of those problems that nobody wants to even acknowledge much less try solve.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

