Sha256: 254d6bbe27dc516e0e31cb21bfce22506de2b93153e0480c98f56bcac7d86aa7

Contents?: true

Size: 432 Bytes

Versions: 179

Compression:

Stored size: 432 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
require 'test/unit/assertions'

module Rake
  include Test::Unit::Assertions

  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

  extend self
end

Version data entries

179 entries across 133 versions & 13 rubygems

Version Path
drake-0.8.3.1.0.14 lib/rake/runtest.rb
drake-0.8.2.1.0.5 lib/rake/runtest.rb
drake-0.8.2.1.0.11 lib/rake/runtest.rb
drake-0.8.4.1.2.0 lib/rake/runtest.rb
drake-0.8.4.1.1.0 lib/rake/runtest.rb
drake-0.8.4.1.0.18 lib/rake/runtest.rb
drake-0.8.7.0.2.3 lib/rake/runtest.rb
drake-0.8.5.0.2.2 lib/rake/runtest.rb
drake-0.8.4.1.2.1 lib/rake/runtest.rb
rake-0.8.6 lib/rake/runtest.rb
rake-0.7.3 lib/rake/runtest.rb
rake-0.7.2 lib/rake/runtest.rb
rake-0.8.7 lib/rake/runtest.rb
rake-0.8.5 lib/rake/runtest.rb
rake-0.8.2 lib/rake/runtest.rb
rake-0.8.0 lib/rake/runtest.rb
rake-0.8.1 lib/rake/runtest.rb
rake-0.8.3 lib/rake/runtest.rb
rake-0.8.4 lib/rake/runtest.rb