i changed my .autotest file to use with ruby based project. after that when i wanted to use it for rails it is using the .autotest configuration settings i used for ruby project. i uninstalled autotest and reinstalled it with no luck. i also removed .autotest file in root directory but it is not working.
A:
how are you launching autotest? If you use autotest --rails
it should definitely work.
Ben Hughes
2009-06-22 19:04:43
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/shoulda_macros/searchable.rb test/functional/test_controller_test.rb test/test_helper.rb].each { |f| require f }" | unit_diff -unope, above is the initial trace of autotest --rails
Subba Rao
2009-06-22 19:14:08
+5
A:
I'm trying to get autotest up and running as well. I just installed the gem. Running autotest
or autotest --rails
inside my rails app starts autotest, but it doesn't runs a single test. It reports that there aren't any.
UPDATE:
Just discovered I needed to install autotest-rails
as well.
You should also install autotest-fsevent
to make sure that autotest isn't polling all the time.
I've posted the results of my day of autotest at http://ryanbooker.com/archive/autotest-your-rails-apps.
The Short story:
sudo gem install ZenTest autotest-rails autotest-fsevent autotest-growl redgreen
Edit your ~/.autotest
# Include plugins
require 'autotest/fsevent'
require 'autotest/growl'
require 'redgreen/autotest' # yes this is correct
# Skip some paths
Autotest.add_hook :initialize do |autotest|
%w{.git .DS_Store ._* vendor}.each { |exception| autotest.add_exception(exception) }
false
end
You can launch autotest with:
cd myrailsapp
autotest
Ryan Booker
2009-06-23 10:49:37