Sha256: 8f80b39c06a6cd0e39435fe81b673ec7c087c2930abbb8e389ebc6226c1c95c5
Contents?: true
Size: 819 Bytes
Versions: 6
Compression:
Stored size: 819 Bytes
Contents
#!/usr/bin/env ruby # # Adds the project library directory # and this test directory to Ruby's # load path, loads the test helper # and executes the given test files. # # ruby test/runner [-d] [-v] [TEST]... # # -d Enables $DEBUG mode in Ruby. # # -v Enables $VERBOSE mode in Ruby. # # TEST Path to a file, or a file globbing # pattern describing a set of files. # # The default value is all *_test.rb # files beneath this test/ directory. $DEBUG = true if ARGV.delete('-d') $VERBOSE = true if ARGV.delete('-v') lib_dir = File.expand_path('../../lib', __FILE__) test_dir = File.expand_path('..', __FILE__) $LOAD_PATH.unshift lib_dir, test_dir load File.join(test_dir, 'helper.rb') ARGV << "\#{test_dir}/**/*_test.rb" if ARGV.empty? ARGV.each {|glob| Dir[glob].each {|test| load test } }
Version data entries
6 entries across 6 versions & 1 rubygems