In my opinion the rspec_autotest plugin needs quite a bit of work. At a minimum it should be using the Inflector for pluralization.<br>Example from current revision (r47):<br><pre>def tests_for_file(filename)<br> case filename
<br> when %r%^spec/fixtures/(.*)s.yml% then<br> ["spec/models/#{$1}_spec.rb",<br> "spec/controllers/#{$1}_controller_spec.rb"]</pre>If I have a model City with fixtures cities.yml, rspec_autotest is going to try to run spec/models/citie_spec.rb and spec/controllers/citie_controller_spec.rb
<br><br>Nick, do you have plans on improving this?<br><br>Thanks,<br><br>Dan Manges<br><br><br><div><span class="gmail_quote">On 12/30/06, <b class="gmail_sendername">Michael Johnston</b> <<a href="mailto:lastobelus@mac.com">
lastobelus@mac.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div>That is what I meant. In my setup, it is NOT rerunning the whole suite after I fix a failing spec.
</div><div><br></div><div>After a cursory look at autotest.rb in ZenTest, I haven't figured out why it is broken. But I think I will try to figure that out today, because autotest seems kind of pointless without that behaviour.
</div><div><br></div><div>It probably has nothing to do with rspec or rspec_autotest; I realized that my version of ZenTest is new too, 3.4.3 instead of 3.4.1.</div><div><br></div><div>Cheers,</div><div>Michael<br><div><div>
On 21-Dec-06, at 11:13 AM, Nick Sieger wrote:</div><br><blockquote type="cite">On 12/21/06, <b class="gmail_sendername">Michael Johnston</b> <<a href="mailto:lastobelus@mac.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
lastobelus@mac.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Has anyone else encountered this problem?
<br><br>What I mean is, rspec_autotest runs all specs, then waits. When you<br>change a spec, it reruns that spec. However, if that spec now passes,<br>it should run the whole suite again, so you can see the next one to <br>
work on. It no longer does this. This renders it somewhat useless.<br><br>Does anyone have autotest working with rspec 0.7.5, or does anyone<br>have any idea of what may be causing this issue or how to go about<br>fixing it?
</blockquote><div><br>Are you sure this is caused by the 0.7.5 upgrade? I've seen similar behavior but I'm still on 0.7.3. Here's the response comment I posted to yours:<br><br>I think this is expected behavior for autotest – I've already noticed this and assumed it was standard behavior. The only time autotest reruns the whole suite is after I've just fixed a failing test or spec. Is it possible that's what you're observing?
<br><br>Feel free to take any further discussion off-list, thanks.<br><br>/Nick </div></div><div style="margin: 0px;">_______________________________________________</div><div style="margin: 0px;">rspec-users mailing list
</div><div style="margin: 0px;"><a href="mailto:rspec-users@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rspec-users@rubyforge.org</a></div><div style="margin: 0px;"><a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://rubyforge.org/mailman/listinfo/rspec-users</a></div> </blockquote></div><br></div></div>
<br>_______________________________________________<br>rspec-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">
http://rubyforge.org/mailman/listinfo/rspec-users</a><br><br></blockquote></div><br>