If you run this as part of a Rails project, I would recommend creating a new test group, one for the local one (i.e :test ) and one for the autotest (i.e :autotest ).
In the env.rb file, you can do something like the following:
if Rails.env.autotest? Capybara.javascript_driver = :webkit else Capybara.javascript_driver = :selenium end
It is assumed that you are using Rails 3. If you are not using Rails 3 yet, I think you can just use RAILS_ENV to get the current environment name.
Once this is installed, simply modify Autotest to use the environment :autotest .
source share