Sha256: 7cc0300bcbda8f86d83cc3f0d8569f6eed19797d535951034bbecb2355519ec9
Contents?: true
Size: 784 Bytes
Versions: 10
Compression:
Stored size: 784 Bytes
Contents
# encoding: utf-8 def run_tests(dir_glob) ENV['ARGS'] ||= '' ENV['QUIET'] ||= 'true' $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..')) # require our test helper so we don't have to in each individual test require 'test/helper' test_files = Dir["#{dir_glob}*_spec.rb"] + Dir["#{dir_glob}test_*.rb"] test_files.each { |f| require f } exit MiniTest::Unit.new.run(ENV['ARGS'].split) end namespace :test do # test:all desc 'Run all tests' task :all do run_tests "test/**/" end # test:... %w( base cli data_sources extra filters helpers tasks ).each do |dir| desc "Run all #{dir} tests" task dir.to_sym do |task| run_tests "test/#{dir}/**/" end end end desc 'Alias for test:all' task :test => [ :'test:all' ]
Version data entries
10 entries across 10 versions & 1 rubygems