Sha256: d8986a6139fccf8b861b37e7bce06d4062523a489d72b30f987588367308d3c9
Contents?: true
Size: 968 Bytes
Versions: 6
Compression:
Stored size: 968 Bytes
Contents
#!/usr/local/bin/ruby -ws $v ||= false $h ||= false $help ||= false if $h or $help then help = [ "autotest [options]", nil, "options:", "\t-h", "\t-help\t\tYou're looking at it.", nil, "\t-v\t\tBe verbose.", "\t\t\tPrints files that autotest doesn't know how to map to", "\t\t\ttests.", ] STDERR.puts help.join("\n") exit 1 end class Dir class << self alias :old_index :[] def [](*args) $-w, old_warn = false, $-w old_index(*args) ensure $-w = old_warn end end end require 'autotest' style = Autotest.autodiscover target = Autotest unless style.empty? then mod = "autotest/#{style.join("_")}" puts "loading #{mod}" begin require mod rescue LoadError abort "Autotest style #{mod} doesn't seem to exist. Aborting." end target = Autotest.const_get(style.map {|s| s.capitalize}.join) end target.run
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ZenTest-3.6.0 | bin/autotest |
ZenTest-3.6.1 | bin/autotest |
ZenTest-3.7.0 | bin/autotest |
ZenTest-3.7.1 | bin/autotest |
ZenTest-3.7.2 | bin/autotest |
ZenTest-3.8.0 | bin/autotest |