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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With