Created
July 8, 2012 20:45
-
-
Save subimage/3072722 to your computer and use it in GitHub Desktop.
Pass files or directories to autotest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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