<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jBoxer &#187; unit testing</title>
	<atom:link href="http://jboxer.com/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://jboxer.com</link>
	<description>I change the directions of small pieces of metal for a living.</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:23:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A method with no unit tests is a broken method</title>
		<link>http://jboxer.com/2009/11/method-with-no-unit-tests-broken-method/</link>
		<comments>http://jboxer.com/2009/11/method-with-no-unit-tests-broken-method/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 01:57:34 +0000</pubDate>
		<dc:creator>Jake Boxer</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[test driven development]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://jboxer.com/?p=254</guid>
		<description><![CDATA[If you write software, you need to write unit tests. If you&#8217;ve written a method/function, and you haven&#8217;t written a unit test for it, it&#8217;s safe to assume that it&#8217;s broken (even if it compiles and your other tests pass). I&#8217;m not necessarily advocating full-fledged test-driven development. I&#8217;m just saying, if you release code into [...]]]></description>
			<content:encoded><![CDATA[<p>If you write software, you need to write unit tests. If you&#8217;ve written a method/function, and you haven&#8217;t written a unit test for it, it&#8217;s safe to assume that it&#8217;s broken (even if it compiles and your other tests pass).</p>
<p>I&#8217;m not necessarily advocating full-fledged test-driven development. I&#8217;m just saying, if you release code into &#8220;the wild,&#8221; and there are methods you haven&#8217;t unit tested, your customers will almost certainly run into multiple bugs in each one of them.</p>
<p>That&#8217;s an atomic point. Separate from that, I&#8217;d like to mention that this isn&#8217;t always a bad thing. For a startup that wants to iterate as quickly as possible (and is writing non-life-critical software), writing the code with no unit tests, releasing it, and reproducing each customer-discovered bug with a unit test before fixing it is a totally reasonable model. These startups just shouldn&#8217;t operate under the illusion that their software &#8220;works&#8221;. In the hours after they make one of these releases, they should feel blessed if a single customer is able to register or log in.</p>
]]></content:encoded>
			<wfw:commentRss>http://jboxer.com/2009/11/method-with-no-unit-tests-broken-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
