<?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>amazing development &#187; Testing</title>
	<atom:link href="http://amazing-development.com/archives/category/all/work/testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://amazing-development.com</link>
	<description>ruby, java and the rest</description>
	<lastBuildDate>Thu, 20 May 2010 06:31:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Random acts of testing</title>
		<link>http://amazing-development.com/archives/2007/08/22/random-acts-of-testing/</link>
		<comments>http://amazing-development.com/archives/2007/08/22/random-acts-of-testing/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 12:04:22 +0000</pubDate>
		<dc:creator>Frank Spychalski</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://amazing-development.com/archives/2007/08/22/random-acts-of-testing/</guid>
		<description><![CDATA[I recently bought Beautiful Code. In chapter 7 Alberto Savoia writes the essay &#8220;Beautiful Tests&#8221; about the use of randomized tests to easily create a wide range of inputs for a system under test. I really like and use his idea of randomized tests. But there is one very important hint missing in the chapter: [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm-de.amazon.de/e/cm?t=frankspycha0b-21&#038;o=3&#038;p=8&#038;l=as1&#038;asins=0596510047&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="float: right; width:120px;height:240px; margin-right:0px; margin-left: 5px;" scrolling="no" frameborder="0"></iframe></p>
<p>I recently bought <a href="http://www.amazon.de/dp/0596510047?tag=frankspycha0b-21&#038;camp=1410&#038;creative=6378&#038;linkCode=as1&#038;creativeASIN=0596510047&#038;adid=0K722DW7PZJRETH90M6P&#038;">Beautiful Code</a>. In chapter 7 Alberto Savoia writes the essay &#8220;Beautiful Tests&#8221; about the use of randomized tests to easily create a wide range of inputs for a system under test.</p>
<p>I really like and use his idea of randomized tests. But there is one very important hint missing in the chapter:</p>
<blockquote style="font-size: 130%; font-weight: bold;"><p>Initialize the random number generator for every test to a fixed seed!</p></blockquote>
<p>Why? Tests should be repeatable! Otherwise you can never be sure if you have fixed a bug from the previous test run, because you don&#8217;t know if the same test data was created.</p>
<p>Why for every test?  Again: tests should be repeatable! If you want to run a single test and the random number generator was initialized for the whole test suite, you behavior will change for all but the very first test case.</p>
]]></content:encoded>
			<wfw:commentRss>http://amazing-development.com/archives/2007/08/22/random-acts-of-testing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
