<?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>catapult-creative.com &#187; TDD</title>
	<atom:link href="http://www.catapult-creative.com/tag/tdd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.catapult-creative.com</link>
	<description>worldwide (web) whatnot</description>
	<lastBuildDate>Wed, 18 Aug 2010 13:33:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Autotester and GrowlGlue &#8211; an adventurer is me!</title>
		<link>http://www.catapult-creative.com/2008/07/13/autotester-and-growlglue-an-adventurer-is-me/</link>
		<comments>http://www.catapult-creative.com/2008/07/13/autotester-and-growlglue-an-adventurer-is-me/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 03:49:00 +0000</pubDate>
		<dc:creator>Trevor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">tag:www.catapult-creative.com,2008-07-14:66</guid>
		<description><![CDATA[Setting up autotest earlier today was kind of an annoying, semi-humbling experience.  A few things that people should know to save themselves some trouble:


  Everyone calls it autotest, but it&#8217;s actually ZenTest that you need to install.  ZenTest is a larger testing package, of which autotest is merely one part.

  Autotest [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up <a href="http://www.zenspider.com/ZSS/Products/ZenTest/" title="ZenTest: Automated test scaffolding for Ruby">autotest</a> earlier today was kind of an annoying, semi-humbling experience.  A few things that people should know to save themselves some trouble:</p>

<ul>
  <li>Everyone calls it autotest, but it&#8217;s actually <a href="http://www.zenspider.com/ZSS/Products/ZenTest/" title="ZenTest: Automated test scaffolding for Ruby">ZenTest</a> that you need to install.  ZenTest is a larger testing package, of which autotest is merely one part.</li>

  <li>Autotest runs as a separate process (which you should background &mdash; the &#8216;&amp;&#8217; is your friend!) and watches your Rails dir <em>after you have it turned on</em>.  This last bit took me some time to figure out, as the otherwise excellent <a href="http://peepcode.com/products/rspec-basics" title="RSpec Basics | PeepCode Screencasts for Ruby on Rails Developers">RSpec Peepcode screencast</a> completely glosses over this point.  I kept waiting for the magic to happen when I hit &#8220;save&#8221; in TextMate, but I didn&#8217;t have the process running from the command line.  Magic doesn&#8217;t work.  I should stop expecting it to.</li>

  <li>Do yourself a favor and vastly simplify your autotest&#8211;&gt;Growl connection by using Collin VanDyck&#8217;s <a href="http://gluedtomyseat.com/2008/7/9/growl-glue-tying-together-autotest-and-growl" title="gluedtomyseat: GrowlGlue : tying together Autotest and Growl">GrowlGlue gem</a> as the basis for your .autotest config file.</li>
</ul>

<p>As of right now, I&#8217;m sitting here with just the <a href="http://growl-glue.rubyforge.org/" title="growl-glue-1.0.1 Documentation">basic GG config</a>.  I&#8217;m sure I&#8217;ll expand/customize tomorrow, but I&#8217;m just happy for now that I was able to get a working setup with just one line of code, as the normal way to get the connection going involves a <a href="http://blog.aisleten.com/2008/02/21/installing-growlnotify-and-autotest-for-bdd-use-with-rspec-on-leopard/" title="Midnight Oil  &amp;raquo; Blog Archive   &amp;raquo; Installing GrowlNotify and Autotest for BDD use with Rspec on Leopard">decent amount of crap</a>.  After you get that going, GrowlGlue lets you set up all sorts of customization of the notifications &mdash;  including custom messages, custom notification icons, and even speaking your test results through OS X&#8217;s built-in text-to-speech support &mdash; in nice, neat Ruby statements.</p>

<p>It&#8217;s nice to have something get in my face about my tests, and it&#8217;s also nice to have something that automatically makes you want to get your tests passing and running <em>faster</em>.  Autotest provides you with the nagging voice that says &#8220;get your tests running right, holmes!&#8221;  It&#8217;s good to strike this longstanding to-do off my list.</p>

<p><em>Late update:</em> Turns out that running autotest in the background isn&#8217;t really ideal since you might sometimes want to cancel a running suite or check out the time elapsed since you started a given test set.  What I&#8217;m looking for now is a way to see how long it takes any <em>individual</em> test to run so that I can find the offenders that are kicking up the aggregate time.</p>]]></content:encoded>
			<wfw:commentRss>http://www.catapult-creative.com/2008/07/13/autotester-and-growlglue-an-adventurer-is-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
