<?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>Sam Pierson&#039;s Blog &#187; autotest</title>
	<atom:link href="http://sampierson.com/blog/tag/autotest/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to stop autotest/autospec from testing the entire project on a red to green transition</title>
		<link>http://sampierson.com/blog/software-development/how-to-stop-autotestautospec-from-testing-the-entire-project-on-a-red-green-transition/</link>
		<comments>http://sampierson.com/blog/software-development/how-to-stop-autotestautospec-from-testing-the-entire-project-on-a-red-green-transition/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 21:52:04 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[autotest]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=332</guid>
		<description><![CDATA[When developing a new module using TDD, I like to first write a failing test, then write the code to make the test pass, then repeat ad-nauseum.  If you are using autospec/autotest &#8211; which I love in general &#8211; it has this annoying habit of running the entire suite of tests on any red to [...]]]></description>
			<content:encoded><![CDATA[<p>When developing a new module using TDD, I like to first write a failing test, then write the code to make the test pass, then repeat ad-nauseum.  If you are using autospec/autotest &#8211; which I love in general &#8211; it has this annoying habit of running the entire suite of tests on any red to green transition.  This is quite inconvenient when you are rapidly iterating between red and green and your entire suite of tests takes a while to run.</p>
<p>So what I do is disable this behavior.  It will only run the entire suite of tests in response to a Ctrl-C.  Otherwise it will just test things that have changed.  To do this comment out the following line (or do something that has that effect &#8211; personally I put an <em>unless ENV['AUTOTEST_DONT_RUN_ENTIRE_SUITE_ON_RED_TO_GREEN_TRANSITION'] </em>on the end of it): In /Library/Ruby/Gems/1.8/gems/ZenTest-3.11.0/lib/autotest.rb</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>411
412
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Comment out this line to disable a full test-suite run on every red-&amp;gt;green transition.</span>
<span style="color:#008000; font-style:italic;"># self.tainted = true unless self.files_to_test.empty?</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/how-to-stop-autotestautospec-from-testing-the-entire-project-on-a-red-green-transition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autotest in color</title>
		<link>http://sampierson.com/blog/software-development/autotest-in-color/</link>
		<comments>http://sampierson.com/blog/software-development/autotest-in-color/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 21:37:29 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[autotest]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=215</guid>
		<description><![CDATA[For completeness: to install ZenTest Autotest:

sudo gem install ZenTest

Autotest will display a red/green bar after running tests, if you add this line to ~/.autotest

require 'autotest/redgreen'

More plugins are described here, but this appears to be the only one that works out of the box.
]]></description>
			<content:encoded><![CDATA[<p>For completeness: to install ZenTest Autotest:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> ZenTest</pre></div></div>

<p>Autotest will display a red/green bar after running tests, if you add this line to ~/.autotest</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'autotest/redgreen'</span></pre></div></div>

<p>More plugins are described <a href="http://ph7spot.com/articles/getting_started_with_autotest">here</a>, but this appears to be the only one that works out of the box.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/autotest-in-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
