Sha256: 18618de2ce3f01afe8c69976391b4dbdb54c104a3be0c2fa6a665a365df7489e

Contents?: true

Size: 742 Bytes

Versions: 8

Compression:

Stored size: 742 Bytes

Contents

#!/usr/bin/ruby

require "logger"
require "stringio"
require "pathname"

require 'test/unit/collector/dir'
require 'test/unit/ui/console/testrunner'

def main
  old_verbose = $VERBOSE
  $VERBOSE = true

  tests_dir = Pathname.new(__FILE__).dirname.dirname.join('test')

  # Collect tests from everything named test_*.rb.
  c = Test::Unit::Collector::Dir.new

  if c.respond_to?(:base=)
    # In order to supress warnings from ruby 1.8.6 about accessing
    # undefined member
    c.base = tests_dir
    suite = c.collect
  else
    # Because base is not defined in ruby < 1.8.6
    suite = c.collect(tests_dir)
  end


  result = Test::Unit::UI::Console::TestRunner.run(suite)
  result.passed?
ensure
  $VERBOSE = old_verbose
end

exit(main)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-openid-2.0.2 admin/runtests.rb
ruby-openid-2.0.1 admin/runtests.rb
ruby-openid-2.1.5 admin/runtests.rb
ruby-openid-2.0.4 admin/runtests.rb
ruby-openid-2.1.6 admin/runtests.rb
ruby-openid-2.1.2 admin/runtests.rb
ruby-openid-2.0.3 admin/runtests.rb
ruby-openid-2.1.4 admin/runtests.rb