Sha256: e8b9adde9afaf27860e4266b96f3e6f6dfc22674a2685a25f0e24e23715f2f44
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
#!/usr/local/bin/ruby -ws $h ||= false $help ||= false if $h or $help then help = [] help << "autotest [options]" help << nil help << "options:" help << "\t-h" help << "\t-help\t\tYou're looking at it." help << nil help << "\t-v\t\tBe verbose." help << "\t\t\tPrints files that autotest doesn't know how to map to" help << "\t\t\ttests." help << nil help << "\t-rails\t\tForce rails mode." help << "\t\t\tRails will be automatically detected by the presence of" help << "\t\t\tconfig/environment.rb. Use this if you don't have one." help << nil help << "\t\t\tYou may need to run 'rake db:test:prepare' before" help << "\t\t\tstarting autotest on a rails project." help << nil help << "\t-vcs=NAME\tVersion control system to update." help << "\t\t\tAutotest will automatically update every vcstime" help << "\t\t\tseconds." help << "\t\t\tAutotest understands Perforce (p4), CVS (cvs) and" help << "\t\t\tSubversion (svn)." help << nil help << "\t-vcstime=N\tUpdate source control every N seconds." help << "\t\t\tDefaults to every five minutes (300 seconds)." STDERR.puts help.join("\n") exit 1 end $v ||= false $rails ||= false $vcs ||= nil $vcstime ||= 300 $vcstime = $vcstime.to_i if $rails or File.exist? 'config/environment.rb' then require 'rails_autotest' RailsAutotest.run else require 'autotest' Autotest.run end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ZenTest-3.3.0 | bin/autotest |
ZenTest-3.4.0 | bin/autotest |
ZenTest-3.4.1 | bin/autotest |
ZenTest-3.4.2 | bin/autotest |
ZenTest-3.4.3 | bin/autotest |