<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Autotest without Rails Comments</title>
  <id>tag:opensoul.org,2009:/2007/12/6/autotest-without-rails/comments</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://opensoul.org/2007/12/6/autotest-without-rails/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
  <updated>2008-07-20T21:16:08Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Ben</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:6854</id>
    <published>2008-07-20T21:16:08Z</published>
    <updated>2008-07-20T21:16:08Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by Ben</title>
<content type="html">&lt;p&gt;Thanks for the post! This worked great for my non-Rails project that has a custom directory structure (code is in lib/ while tests are either in test/unit or test/functional &#8211; and all tests look like foo_test.rb).&lt;/p&gt;


	&lt;p&gt;I just had to do a tiny bit of tweaking (to @test_mapping) and your code worked perfectly on ZenTest 3.10.0.&lt;/p&gt;


	&lt;p&gt;That said, if there is another more standard way to achieve this without patching Autotest classes (perhaps via .autotest), I&#8217;d love to know about it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Ryan Davis</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:5229</id>
    <published>2008-02-05T23:47:25Z</published>
    <updated>2008-02-05T23:47:25Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by Ryan Davis</title>
<content type="html">&lt;p&gt;&lt;em&gt;&#8220;I started going through withdrawal last night while I was working on a Ruby library because autotest doesn’t work out of the box with plain ol’ Ruby projects.&#8221;&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;Huh?!? Yes it does. I use it on &lt;span class=&quot;caps&quot;&gt;ALL&lt;/span&gt; of my projects, almost all without a .autotest file.&lt;/p&gt;


	&lt;p&gt;Everything you have in the code example is unnecessary. (and probably broken against the latest autotest).&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>J. Mihai</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:4559</id>
    <published>2007-12-13T13:27:20Z</published>
    <updated>2007-12-13T13:27:20Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by J. Mihai</title>
<content type="html">&lt;p&gt;Ummmm I am a beginner ( actually just reading more about it ) and this doesnt really make sense for me. Can I have a sort of references for this, maybe some other examples ?&lt;/p&gt;


	&lt;p&gt;Thanks&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>vinbarnes</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:4521</id>
    <published>2007-12-11T19:01:43Z</published>
    <updated>2007-12-11T19:01:43Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by vinbarnes</title>
<content type="html">&lt;p&gt;I just run autotest inside brand new Ruby projects w/ nothing but lib and spec directories. It just works.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:4396</id>
    <published>2007-12-06T18:38:44Z</published>
    <updated>2007-12-06T18:38:44Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by Brandon</title>
<content type="html">&lt;p&gt;Tammer,&lt;/p&gt;


	&lt;p&gt;No, you put those files inside your project, not your &lt;code&gt;~/.autotest&lt;/code&gt; file.&lt;/p&gt;


	&lt;p&gt;Theoretically, you could put them in your autotest file, but you&#8217;d have to modify it a bit:&lt;/p&gt;


&lt;pre&gt;
Autotest.add_discovery do
  &quot;testunit&quot; if !File.exist? 'config/environment.rb' &#38;&#38;
    File.exist? 'test'
end
&lt;/pre&gt;

	&lt;p&gt;That will only add the testunit support if the project has a test directory and it doesn&#8217;t have config/environment.rb.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Tammer Saleh</name>
    </author>
    <id>tag:opensoul.org,2007-12-06:4390:4391</id>
    <published>2007-12-06T18:01:57Z</published>
    <updated>2007-12-06T18:01:57Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/12/6/autotest-without-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Autotest without Rails' by Tammer Saleh</title>
<content type="html">&lt;p&gt;Won&#8217;t think break autotest for rails projects?  Do you change your &lt;code&gt;~/.autotest/&lt;/code&gt; files when you switch between the different projects?&lt;/p&gt;</content>  </entry>
</feed>
