1234567891011121314151617181920 |
- $LOAD_PATH << './lib'
- require 'rubygems'
- namespace :test do
- desc 'Start browser tests'
- task :browser, [:opts] => :environment do |_t, args|
- start = Time.zone.now
- if !args.opts
- args.opts = ''
- end
- Dir.glob('test/browser/*_test.rb').sort.each do |r|
- sh "#{args.opts} ruby -Itest #{r}" do |ok, res|
- raise 'Failed test. ' + res.inspect if !ok
- end
- end
- puts 'All browser tests, elapsed: ' + (Time.zone.now - start).to_s + ' seconds'
- end
- end
|