Created
September 12, 2008 22:19
-
-
Save hardbap/10524 to your computer and use it in GitHub Desktop.
This file contains 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
# Prevents autotest from running your entire test suite after fixing a failed test. | |
# Works with ZenTest 3.10.0 | |
# Place this in your .autotest file: | |
class Autotest | |
def run | |
hook :initialize | |
reset | |
add_sigint_handler | |
self.last_mtime = Time.now if $f | |
loop do # ^c handler | |
begin | |
get_to_green | |
hook :all_good unless self.tainted | |
wait_for_changes | |
rescue Interrupt | |
break if self.wants_to_quit | |
reset | |
end | |
end | |
hook :quit | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment