Sha256: ab18e894d07833250773b3208308f7a5199ad8b6e1d4d530c6e507f7777d9d3d

Contents?: true

Size: 901 Bytes

Versions: 12

Compression:

Stored size: 901 Bytes

Contents

#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++


require 'test/unit'
require 'pp'

def run_tests(pattern='test/test*.rb', log_enabled=false)
  Dir["#{pattern}"].each { |fn|
    puts fn if log_enabled
    begin
      load fn
    rescue Exception => ex
      puts "Error in #{fn}: #{ex.message}"
      puts ex.backtrace
      assert false
    end
  }
end

# You can run the unit tests by running this file directly, providing a pattern.  For example,
#
#   ruby scripts/runtests.rb spec
#
# will load just the "test/test_specification.rb" unit test (unless others match as well).

if $0 == __FILE__
  $:.unshift 'lib'   # Must run this from the root directory.
  pattern = ARGV.shift
  if pattern
    pattern = "test/*#{pattern}*.rb"
    run_tests(pattern, true)
  else
    run_tests
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubygems-update-1.0.0 scripts/runtest.rb
rubygems-update-1.1.0 scripts/runtest.rb
rubygems-update-0.9.1 scripts/runtest.rb
rubygems-update-0.9.4 scripts/runtest.rb
rubygems-update-0.9.3 scripts/runtest.rb
rubygems-update-0.9.2 scripts/runtest.rb
rubygems-update-1.0.1 scripts/runtest.rb
rubygems-update-0.9.5 scripts/runtest.rb
rubygems-update-1.3.0 scripts/runtest.rb
rubygems-update-1.1.1 scripts/runtest.rb
rubygems-update-1.3.1 scripts/runtest.rb
rubygems-update-1.2.0 scripts/runtest.rb