views:

93

answers:

1

I've just installed a ZenTest to use autotest in my project. I use rspec and have an integration folder inside it. As I don't want all my integration tests run every single time I start autospec , so I'd like to somehow restrict autospec from running tests in that folder.

How do I exclude a chosen folder inside a /spec from running by autotest?

+1  A: 

You can tell autotest to ignore folders by editing the .autotest file in the root of your project:

Autotest.add_hook :initialize do |at|
  %w{.git vendor spec/integration}.each {|exception| at.add_exception(exception)}
end

This example will ignore the .git, vendor, and spec/integration folders and their descendants. You'll need to restart autospec to make the changes effective.

zetetic