Sha256: 6ffceb794fa7316f76c2d85e54a7c704f821beca968a3dfaddb244456a4f3dbf

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'
require 'rubygems'
require 'test/unit/testsuite'
require 'test/unit/ui/reporter/reporter'
require 'test/unit/ui/console/testrunner'

fail "Missing Test Results Directory" if ARGV.empty?
html_dir = ARGV.shift

FileUtils.rm_r html_dir rescue nil
FileUtils.mkdir_p html_dir

Dir['test/test*.rb'].each do |fn|
  load fn
end

suite = Test::Unit::TestSuite.new
ObjectSpace.each_object(Class) do |cls|
  next if cls == Test::Unit::TestCase
  suite << cls.suite if cls.respond_to?(:suite)
end

Test::Unit::UI::Reporter::Reporter.run(suite, html_dir)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubygems-update-0.8.3 scripts/buildtests.rb
rubygems-update-0.8.10 scripts/buildtests.rb
rubygems-update-0.8.4 scripts/buildtests.rb
rubygems-update-0.8.5 scripts/buildtests.rb
rubygems-update-0.8.8 scripts/buildtests.rb
rubygems-update-0.8.6 scripts/buildtests.rb
rubygems-update-0.8.11 scripts/buildtests.rb