Sha256: ee0433563b9edce4a632bb10cb88479b0c7e20a2110e22093711684d8b9f6c4f
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
#!/usr/bin/env ruby require "time" start_time = Time.now $LOAD_PATH.unshift(File.expand_path('../lib', __dir__)) require "pathname" require "matest" RUNNER = Matest::Runner.new ARGV.each do |file| RUNNER.load_file(Pathname(file).expand_path) 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."
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matest-0.0.2 | bin/mt |