Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Autorun minitests fast
require 'rubygems'
require 'filewatcher'
# Autorun minitests when one of these files is updated:
files = ["my_minitest_tests.rb","code_under_test.rb"]
puts "Update one of these files to start tests: " + files.join(", ") do |filename|
puts "Updated " + filename
load filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment