Adding path for autotest to monitor

I am using autotest with RSpec (autospec) and for some reason it
doesn’t monitor files under the integration folder. Does anyone know
how to config autotest to monitor additional paths? I tried playing
with add_mapping in my .autotest but was not able to get it to work.

Thanks!

P.S. I know that using cucumber for integration testing is the best
practice for RSpec. Just know that I have a good reason for not using
it right now.

On Fri, Feb 19, 2010 at 6:53 PM, drewB [email protected] wrote:

I am using autotest with RSpec (autospec) and for some reason it
doesn’t monitor files under the integration folder. Does anyone know
how to config autotest to monitor additional paths? I tried playing
with add_mapping in my .autotest but was not able to get it to work.

Take a look at
http://blog.davidchelimsky.net/2008/01/15/rspec-1-1-2-and-zentest-3-8-0/
and see if that helps.

Thanks David. I was able to key of some of what you said in the
blog. The solution for me was to add the following to my .autotest:

Autotest.add_hook :initialize do |at|
at.add_mapping(%r%^spec/(integration)/.*rb$%) { |filename, _|
filename
}
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs