Sha256: 7f8b09e556fc121305617c31c34cea47d9a9794d7418f2edb2d17cacee39a342

Contents?: true

Size: 834 Bytes

Versions: 70

Compression:

Stored size: 834 Bytes

Contents

require 'minitest/unit'
require 'fivemat/elapsed_time'

module Fivemat
  module MiniTest
    class Unit < ::MiniTest::Unit
      include ElapsedTime

      def _run_suites(suites, type)
        offset = 0
        suites.reject do |suite|
          filter = options[:filter] || '/./'
          filter = Regexp.new $1 if filter =~ /\/(.*)\//
          suite.send("#{type}_methods").grep(filter).empty?
        end.map do |suite|
          print "#{suite} "
          start_time = Time.now
          result = _run_suite suite, type
          print_elapsed_time $stdout, start_time
          puts
          report.each_with_index do |msg, i|
            puts "%3d) %s" % [offset + i + 1, msg.gsub(/\n/, "\n  ")]
          end
          offset += report.size
          report.clear
          result
        end
      end
    end
  end
end

Version data entries

70 entries across 67 versions & 15 rubygems

Version Path
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/fivemat-1.3.7/lib/fivemat/minitest/unit.rb