Sha256: d8d035fac5c6e257ebd7facf0f60f794585ebd8dfb9457a2890c97c151bcb53b

Contents?: true

Size: 866 Bytes

Versions: 3

Compression:

Stored size: 866 Bytes

Contents

#!/usr/bin/env ruby

require "time"
start_time = Time.now

if File.exist?(File.expand_path('../../spec', __FILE__))
  $LOAD_PATH.unshift(File.expand_path('../../spec', __FILE__))
end
if File.exist?(File.expand_path('../../test', __FILE__))
  $LOAD_PATH.unshift(File.expand_path('../../test', __FILE__))
end

require "matest"
require "rake"

runner = Matest::Runner.runner
Rake::FileList[ARGV].each do |file|
  runner.load_file(file)
end

runner.execute!

time_elapsed = Time.now - start_time

puts
info = runner.info

def spec_detail(info)
  info[:num_specs].map { |name, num|
    "  #{num} #{name.downcase}."
  }.join("\n")
end

good_bye_message = <<-EOF
------------------------------------------
Specs:
#{spec_detail(info)}

EOF

puts good_bye_message

time_elapsed = Time.now - start_time
puts "Elapsed: #{time_elapsed} seconds."


exit(1) unless info[:success]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
matest-1.5.1 bin/matest
matest-1.5.0 bin/matest
matest-1.4.1 bin/matest