Skip to content

Instantly share code, notes, and snippets.

@subimage
Created July 8, 2012 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subimage/3072722 to your computer and use it in GitHub Desktop.
Save subimage/3072722 to your computer and use it in GitHub Desktop.
Pass files or directories to autotest
# If you have a large test suite, being able to test only a subset
# of those items is a big speed boost.
#
# With this in your .autotest file you can run "autotest /some/dir" and only test
# the files within.
#
require 'redgreen/autotest'
Autotest.add_hook :initialize do |at|
unless ARGV.empty?
at.find_directories = ARGV
else
# ... your original mappings here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment