<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>notkeepingitreal.com: Testing Rails Apps - Mike Clark</title>
    <link>http://notkeepingitreal.com/articles/2006/06/26/testing-rails-apps-mike-clark</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Testing Rails Apps - Mike Clark</title>
      <description>&lt;ul&gt;
	&lt;li&gt;&amp;#8220;I&amp;#8217;ve been Java free for 15 months. It&amp;#8217;s been a long time, but not long enough.&amp;#8221; &lt;/li&gt;
		&lt;li&gt;Testing?! What&amp;#8217;s in it for me? Testing won&amp;#8217;t be as fun as working on the app, right? But&amp;#8230;&lt;/li&gt;
		&lt;li&gt;Tests are, in part, the insurance for the app staying fun.&lt;/li&gt;
		&lt;li&gt;Law of Unintended Consequences: almost all human actions have at least one unintended consequence.&lt;/li&gt;
		&lt;li&gt;When difficulties with dependencies become an excuse for not testing&amp;#8230;make a mock object.&lt;/li&gt;
		&lt;li&gt;Anything that sounds like a story is likely a good candidate for an integration test.&lt;/li&gt;
		&lt;li&gt;If you find yourself asking, &amp;#8220;How am I going to test this?&amp;#8221;, it might be an indication that the application isn&amp;#8217;t particularly usable.&lt;/li&gt;
		&lt;li&gt;While testing can slow you down in the very short term, the irony of all of this is that testing can actually help you write better code&amp;#8230;&lt;strong&gt;faster&lt;/strong&gt;.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;em&gt;Yep, this guy&amp;#8217;s right up &lt;a href="http://lathi.net"&gt;Doug&amp;#8217;s&lt;/a&gt; alley.&lt;/em&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 26 Jun 2006 03:14:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:210f2d8b-22fb-4a1a-bc5c-1b2655569e5e</guid>
      <author>Kevin</author>
      <link>http://notkeepingitreal.com/articles/2006/06/26/testing-rails-apps-mike-clark</link>
      <category>Railsconf</category>
      <trackback:ping>http://notkeepingitreal.com/articles/trackback/28</trackback:ping>
    </item>
  </channel>
</rss>
