<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:ent="http://www.purl.org/NET/ENT/1.0/">
  <channel>
    <title>Curiouser and Curiouser! on cruise-control</title>
    <link>http://matt.blogs.it/</link>
    <description>RSS feed for topic cruise-control</description>
    <copyright>Copyright 2008 Matt Mower. Some rights reserved.</copyright>
    <generator>Squib/0.5.0.382</generator>
    <managingEditor>self@mattmower.com</managingEditor>
    <webMaster>self@mattmower.com</webMaster>
    <language>en-gb</language>
    <item>
      <title>Get it covered</title>
      <link>http://matt.blogs.it/entries/00002775.html</link>
      <pubDate>Wed, 16 Jan 2008 12:05:58 +0000</pubDate>
      <description>&lt;p&gt;I really like CruiseControl.rb. Despite running my tests locally it has caught a few things that differed between my MacOSX laptop and our EY staging (and production) slices. Also it's a comfort to know that the tests are guaranteed to be run.&lt;/p&gt;

&lt;p&gt;Following &lt;a href="http://deadprogrammersociety.blogspot.com/2007/06/cruisecontrolrb-and-rcov-are-so-good.html"&gt;instructions i found at the Dead Programmer Society&lt;/a&gt; I was able to integrate rcov into the process so that I automatically get coverage reports with each test run available:&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/mattmower/r39d/cruisecontrol.rb"&gt;&lt;img src="http://img.skitch.com/20080116-fq11iisjusfgymykk5f4jx941e.preview.jpg" alt="CruiseControl.rb" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;That's pretty neat. Now there's two additional things I would like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;I want coverage run across the whole application, not split into "unit" and "functional" tests (even allowing for the arguments about rails use of these terms there is no reason to split running the tests in cc.rb) because otherwise I think the coverage of things like &lt;code&gt;lib/&lt;/code&gt; is going to be faulty. Either that or it shows up a faulty assertion in my testing practice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I want CC.rb to automatically kick of a deployment to our staging server if the tests pass. Typically I check the tests run locally, commit, watch while &lt;a href="http://ccmenu.sourceforge.net/"&gt;CCMenu&lt;/a&gt; starts spinning then goes green again. Go back to iTerm and do a deployment to staging. Life would, I think, be simpler if CC.rb could kick off the last step for me.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There's two challenges to No.2 as I see it. The first is "How do I make CC.rb trigger a deployment?" and the second is "How do I make my deployment hands-off?" For example my current deployment requires a password to be entered to delete old versions. I can't see a way of doing passwordless sudo for that specific operation so I guess I'd have to remove that step from the deployment and then run it daily via cron or something.&lt;/p&gt;

&lt;p&gt;Anyone else interested in this kind of thing? Or have a better process?&lt;/p&gt;</description>
      <guid isPermaLink="true">http://matt.blogs.it/entries/00002775.html</guid>
      <ent:cloud ent:href="http://matt.blogs.it/topics/">
      </ent:cloud>
    </item>
  </channel>
</rss>
