<?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>Geekality &#187; Unit-Testing</title>
	<atom:link href="http://www.geekality.net/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Thu, 26 Aug 2010 17:44:31 +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>The Art of Unit Testing</title>
		<link>http://www.geekality.net/2009/11/03/the-art-of-unit-testing/</link>
		<comments>http://www.geekality.net/2009/11/03/the-art-of-unit-testing/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:04:42 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit-Testing]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=722</guid>
		<description><![CDATA[Have you gone through three years of computer science bachelor degree fun (or anything similar) and pretty much not heard a word about testing? Or have you heard from all your teachers that testing is extremely important, but never learned &#8230; <a href="http://www.geekality.net/2009/11/03/the-art-of-unit-testing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.geekality.net/wp-content/uploads/2009/11/osherove_cover150.jpg" alt="The Art of Unit Testing (Book cover)" title="The Art of Unit Testing (Book cover)" width="150" height="186" class="alignright size-full wp-image-723" />Have you gone through three years of computer science bachelor degree fun (or anything similar) and pretty much not heard a word about testing? Or have you heard from all your teachers that testing is <em>extremely important</em>, but never learned how to even write one? That has been the case for me. <cite>Testing is important, you all got to do it, it is very important, always test, do it a lot!</cite> Well, sure&#8230; but how do I do it? How do I write one of these tests?</p>
<p><span id="more-722"></span></p>
<p>The last book I finished is called <a href="http://www.manning.com/osherove/">The Art of Unit Testing</a>, and I am <em>so</em> happy that I stumbled over that book. Spring 2009 I was at a developer conference called <a href="http://www.ndc2009.no/">NDC 2009</a> (Norwegian Developer Conference) and it was <em>really</em> great. If you have the time, you should go to that website and have a look. You can watch most of the talks there online. Anyways, the second day I attended a series of talks about <a href="http://en.wikipedia.org/wiki/Test_driven_development">Test Driven Development</a> with a great speaker called <a href="http://weblogs.asp.net/ROsherove/">Roy Osherove</a>. I learned a bunch and decided that TDD looks like something I should try to learn. However, I had a big problem. I didn&#8217;t even know how to write a test. And doing TDD without knowing how to write a test is kind of difficult&#8230; to say the least&#8230;</p>
<p>Anyways, this Roy Osherove person advertised that he had just finished a book about pretty much exactly that; writing unit tests. So, I decided to get myself a copy of it. </p>
<p>It was great! Seriously learned <em>a lot</em>. It covers the following subjects (yes, that would be the table of contents).</p>
<ol>
<li>The basics of unit testing</li>
<li>A first unit test</li>
<li>Using stubs to break dependencies</li>
<li>Interaction testing using mock objects</li>
<li>Isolation (mock object) frameworks</li>
<li>Test hierarchies and organization</li>
<li>The pillars of good tests</li>
<li>Integrating unit testing into the organization</li>
<li>Design and testability (Appendix A)</li>
<li>Extra tools and frameworks (Appendix B)</li>
</ol>
<p>It is only 283 pages long (including the appendixes) and a pretty quick and easy read. Which I like. I got sucked in, and it was finished <em>fast</em>. Probably should read it again some time <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':P' title=':P' class='wp-smiley smiley-13' /> But anyways: I previously did not even know how to write a single unit test in any language. Now I do <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' title=':)' class='wp-smiley smiley-1' /> </p>
<p>You can get it from for example <a href="http://www.manning.com/osherove/">Manning</a> (who is the publisher) or from <a href="http://amzn.com/1933988274">Amazon</a>. I would probably get it from Amazon since they seem to have a 34% discount currently&#8230; Except I already have it, of course <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':P' title=':P' class='wp-smiley smiley-13' /> </p>
<p>If you want to learn how to do unit testing, I can recommend it with all my heart <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' title=':)' class='wp-smiley smiley-1' /> </p>
<p>Oh, by the way, when you buy this book, you even get a free eBook version of it! Which is totally brilliant, since then you can have the book and read it at home, but you can also for example put the eBook version on your <a href="http://en.wikipedia.org/wiki/Netbook">netbook</a> and read while travelling. Awesome all the way <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt='8)' title='8)' class='wp-smiley smiley-3' /> Wish more publishers or authors (or whoever decides) were like that&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2009/11/03/the-art-of-unit-testing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
