Sha256: 29b41471a42773fd1b091519fcb0c225c962346fe2c7b7524c23d14178312e77

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 Bytes

Contents

#!/usr/bin/env ruby

require "time"
start_time = Time.now

$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))

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

8 entries across 8 versions & 1 rubygems

Version Path
matest-1.4.0 bin/matest
matest-1.3.2 bin/matest
matest-1.3.1 bin/matest
matest-1.3.0 bin/matest
matest-1.2.0 bin/matest
matest-1.1.4 bin/matest
matest-1.1.3 bin/matest
matest-1.1.2 bin/matest